apparmor: Parse secmark policy
Add support for parsing secmark policy provided by userspace, and store that in the overall policy. Signed-off-by: Matthew Garrett <mjg59@google.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:

committed by
John Johansen

parent
617a629c08
commit
9caafbe2b4
@@ -231,6 +231,9 @@ void aa_free_profile(struct aa_profile *profile)
|
||||
for (i = 0; i < profile->xattr_count; i++)
|
||||
kzfree(profile->xattrs[i]);
|
||||
kzfree(profile->xattrs);
|
||||
for (i=0; i < profile->secmark_count; i++)
|
||||
kzfree(profile->secmark[i].label);
|
||||
kzfree(profile->secmark);
|
||||
kzfree(profile->dirname);
|
||||
aa_put_dfa(profile->xmatch);
|
||||
aa_put_dfa(profile->policy.dfa);
|
||||
|
Reference in New Issue
Block a user