diff options
author | John Johansen <john.johansen@canonical.com> | 2013-07-11 00:17:43 -0400 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2013-08-14 14:42:07 -0400 |
commit | 556d0be74b19cb6288e5eb2f3216eac247d87968 (patch) | |
tree | a97b609d53713c4c2b534da7a5e1e62639939e11 /security/apparmor/include/policy.h | |
parent | 0d259f043f5f60f74c4fd020aac190cb6450e918 (diff) |
apparmor: add an optional profile attachment string for profiles
Add the ability to take in and report a human readable profile attachment
string for profiles so that attachment specifications can be easily
inspected.
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
Diffstat (limited to 'security/apparmor/include/policy.h')
-rw-r--r-- | security/apparmor/include/policy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/apparmor/include/policy.h b/security/apparmor/include/policy.h index 5c72231d1c42..59b36372ae40 100644 --- a/security/apparmor/include/policy.h +++ b/security/apparmor/include/policy.h | |||
@@ -165,6 +165,7 @@ struct aa_replacedby { | |||
165 | * @ns: namespace the profile is in | 165 | * @ns: namespace the profile is in |
166 | * @replacedby: is set to the profile that replaced this profile | 166 | * @replacedby: is set to the profile that replaced this profile |
167 | * @rename: optional profile name that this profile renamed | 167 | * @rename: optional profile name that this profile renamed |
168 | * @attach: human readable attachment string | ||
168 | * @xmatch: optional extended matching for unconfined executables names | 169 | * @xmatch: optional extended matching for unconfined executables names |
169 | * @xmatch_len: xmatch prefix len, used to determine xmatch priority | 170 | * @xmatch_len: xmatch prefix len, used to determine xmatch priority |
170 | * @audit: the auditing mode of the profile | 171 | * @audit: the auditing mode of the profile |
@@ -204,6 +205,7 @@ struct aa_profile { | |||
204 | struct aa_replacedby *replacedby; | 205 | struct aa_replacedby *replacedby; |
205 | const char *rename; | 206 | const char *rename; |
206 | 207 | ||
208 | const char *attach; | ||
207 | struct aa_dfa *xmatch; | 209 | struct aa_dfa *xmatch; |
208 | int xmatch_len; | 210 | int xmatch_len; |
209 | enum audit_mode audit; | 211 | enum audit_mode audit; |