diff options
author | John Johansen <john.johansen@canonical.com> | 2017-05-22 13:06:52 +0300 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2017-06-08 21:29:34 +0300 |
commit | 72c8a768641dc6ee8d1d9dcebd51bbec2817459b (patch) | |
tree | d0153542d088beddf662ffaeff25017c970093b7 /security/apparmor/policy_unpack.c | |
parent | b91deb9db12851c18ccb55719f1cd55c2400aca1 (diff) | |
download | linux-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.c | 3 |
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; |