[apparmor] [PATCH 09/36] apparmor: fix fs extry display for default profile
John Johansen
john.johansen at canonical.com
Wed May 1 21:30:54 UTC 2013
The default profile needs its replaced by information set as its on
the profile list and will have an fs interface (and the fs interface
files require a valid replacedby).
Signed-off-by: John Johansen <john.johansen at canonical.com>
---
security/apparmor/policy.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/security/apparmor/policy.c b/security/apparmor/policy.c
index 333cbb7..a7e6bd9 100644
--- a/security/apparmor/policy.c
+++ b/security/apparmor/policy.c
@@ -731,6 +731,9 @@ struct aa_profile *aa_setup_default_profile(void)
profile->ns = aa_get_namespace(root_ns);
+ /* replacedby being set needed by fs interface */
+ rcu_assign_pointer(profile->replacedby->profile,
+ aa_get_profile(profile));
__list_add_profile(&root_ns->base.profiles, profile);
return profile;
--
1.8.1.2
More information about the AppArmor
mailing list