From c0b46bf19d81c73eaa160ea60f8690a42b6fa0ad Mon Sep 17 00:00:00 2001 From: John Johansen Date: Thu, 12 Jan 2017 15:12:25 -0800 Subject: [PATCH] UBUNTU: SAUCE: apparmor: null profiles should inherit parent control flags null profiles that don't have the same control flags as the parent behave in unexpected ways and can cause failures. BugLink: http://bugs.launchpad.net/bugs/1656121 Signed-off-by: John Johansen Signed-off-by: Tim Gardner --- security/apparmor/policy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/security/apparmor/policy.c b/security/apparmor/policy.c index f2ffcf109e28..f5f286ab70b4 100644 --- a/security/apparmor/policy.c +++ b/security/apparmor/policy.c @@ -350,6 +350,7 @@ name: profile->label.flags |= FLAG_NULL; if (hat) profile->label.flags |= FLAG_HAT; + profile->path_flags = parent->path_flags; /* released on free_profile */ rcu_assign_pointer(profile->parent, aa_get_profile(parent)); -- 2.39.5