summaryrefslogtreecommitdiffstats
path: root/security/apparmor/include/policy.h
diff options
context:
space:
mode:
authorJohn Johansen2017-05-22 12:06:52 +0200
committerJohn Johansen2017-06-08 20:29:34 +0200
commit72c8a768641dc6ee8d1d9dcebd51bbec2817459b (patch)
treed0153542d088beddf662ffaeff25017c970093b7 /security/apparmor/include/policy.h
parentapparmor: make internal lib fn skipn_spaces available to the rest of apparmor (diff)
downloadkernel-qcow2-linux-72c8a768641dc6ee8d1d9dcebd51bbec2817459b.tar.gz
kernel-qcow2-linux-72c8a768641dc6ee8d1d9dcebd51bbec2817459b.tar.xz
kernel-qcow2-linux-72c8a768641dc6ee8d1d9dcebd51bbec2817459b.zip
apparmor: allow profiles to provide info to disconnected paths
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/include/policy.h')
-rw-r--r--security/apparmor/include/policy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/apparmor/include/policy.h b/security/apparmor/include/policy.h
index 67bc96afe541..dffa01c018c8 100644
--- a/security/apparmor/include/policy.h
+++ b/security/apparmor/include/policy.h
@@ -128,6 +128,7 @@ struct aa_data {
* @mode: the enforcement mode of the profile
* @flags: flags controlling profile behavior
* @path_flags: flags controlling path generation behavior
+ * @disconnected: what to prepend if attach_disconnected is specified
* @size: the memory consumed by this profiles rules
* @policy: general match rules governing policy
* @file: The set of rules governing basic file access and domain transitions
@@ -169,6 +170,7 @@ struct aa_profile {
long mode;
long flags;
u32 path_flags;
+ const char *disconnected;
int size;
struct aa_policydb policy;