summaryrefslogtreecommitdiff
path: root/security/apparmor/policy_unpack.c
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2017-05-22 13:06:52 +0300
committerJohn Johansen <john.johansen@canonical.com>2017-06-08 21:29:34 +0300
commit72c8a768641dc6ee8d1d9dcebd51bbec2817459b (patch)
treed0153542d088beddf662ffaeff25017c970093b7 /security/apparmor/policy_unpack.c
parentb91deb9db12851c18ccb55719f1cd55c2400aca1 (diff)
downloadlinux-72c8a768641dc6ee8d1d9dcebd51bbec2817459b.tar.xz
apparmor: allow profiles to provide info to disconnected paths
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/policy_unpack.c')
-rw-r--r--security/apparmor/policy_unpack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/security/apparmor/policy_unpack.c b/security/apparmor/policy_unpack.c
index f3422a91353c..6bc1b10191fa 100644
--- a/security/apparmor/policy_unpack.c
+++ b/security/apparmor/policy_unpack.c
@@ -569,6 +569,9 @@ static struct aa_profile *unpack_profile(struct aa_ext *e, char **ns_name)
profile->xmatch_len = tmp;
}
+ /* disconnected attachment string is optional */
+ (void) unpack_str(e, &profile->disconnected, "disconnected");
+
/* per profile debug flags (complain, audit) */
if (!unpack_nameX(e, AA_STRUCT, "flags"))
goto fail;