1
Index: b/security/apparmor/apparmor.h
2
===================================================================
3
--- a/security/apparmor/apparmor.h
4
+++ b/security/apparmor/apparmor.h
7
#define AA_MAY_LINK 0x0010
8
#define AA_EXEC_INHERIT 0x0020
9
-#define AA_EXEC_UNCONSTRAINED 0x0040
10
+#define AA_EXEC_UNCONFINED 0x0040
11
#define AA_EXEC_PROFILE 0x0080
12
#define AA_EXEC_MMAP 0x0100
13
#define AA_EXEC_UNSAFE 0x0200
14
#define AA_INVALID_PERM 0x0400
16
#define AA_EXEC_MODIFIERS (AA_EXEC_INHERIT | \
17
- AA_EXEC_UNCONSTRAINED | \
18
+ AA_EXEC_UNCONFINED | \
21
/* Control parameters (0 or 1), settable thru module/boot flags or
22
Index: b/security/apparmor/main.c
23
===================================================================
24
--- a/security/apparmor/main.c
25
+++ b/security/apparmor/main.c
26
@@ -802,7 +802,7 @@ aa_register_find(struct aa_profile *prof
29
/* Only way we can get into this code is if task
33
AA_DEBUG("%s: No profile found for exec image %s\n",
35
@@ -838,7 +838,7 @@ repeat:
37
complain = PROFILE_COMPLAIN(profile);
39
- /* Confined task, determine what mode inherit, unconstrained or
40
+ /* Confined task, determine what mode inherit, unconfined or
41
* mandatory to load new profile
43
exec_mode = aa_match(profile->file_rules, filename);
44
@@ -852,8 +852,8 @@ repeat:
45
/* nothing to be done here */
48
- case MAY_EXEC | AA_EXEC_UNCONSTRAINED:
49
- AA_DEBUG("%s: UNCONSTRAINED %s\n",
50
+ case MAY_EXEC | AA_EXEC_UNCONFINED:
51
+ AA_DEBUG("%s: UNCONFINED %s\n",
55
Index: b/security/apparmor/procattr.c
56
===================================================================
57
--- a/security/apparmor/procattr.c
58
+++ b/security/apparmor/procattr.c
59
@@ -58,12 +58,12 @@ size_t aa_getprocattr(struct aa_profile
63
- const char *unconstrained_str = "unconstrained\n";
64
- len = strlen(unconstrained_str);
65
+ const char *unconfined_str = "unconfined\n";
66
+ len = strlen(unconfined_str);
68
/* DONT null terminate strings we output via proc */
70
- memcpy(str, unconstrained_str, len);
71
+ memcpy(str, unconfined_str, len);
73
} else if (size == 0) {
75
@@ -194,7 +194,7 @@ int aa_setprocattr_setprofile(struct tas
79
- if (strcmp(name_copy, "unconstrained") != 0) {
80
+ if (strcmp(name_copy, "unconfined") != 0) {
81
new_profile = aa_find_profile(name_copy);
83
AA_WARN("%s: Unable to switch task %s(%d) to profile"
84
@@ -224,12 +224,12 @@ repeat:
86
task->comm, task->pid,
87
old_profile ? old_profile->parent->name :
89
- old_profile ? old_profile->name : "unconstrained",
91
+ old_profile ? old_profile->name : "unconfined",
95
- AA_WARN("%s: Unconstraining task %s(%d) "
96
+ AA_WARN("%s: Unconfining task %s(%d) "
97
"profile %s active %s\n",
99
task->comm, task->pid,
100
@@ -237,7 +237,7 @@ repeat:
103
AA_WARN("%s: task %s(%d) "
104
- "is already unconstrained\n",
105
+ "is already unconfined\n",
106
__FUNCTION__, task->comm, task->pid);