Revert currently unused by Ubuntu apparmor features that require secid
support, to enable apparmor LSM stacking with the 5.1 LSM stacking
patchset.
This reverts commit
52e8c38001d8ef0ca07ef428e480cd4a35e46abf.
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
/* Currently rules are treated as coming from the root ns */
rule->label = aa_label_parse(&root_ns->unconfined->label, rulestr,
GFP_KERNEL, true, false);
- if (IS_ERR(rule->label)) {
- aa_audit_rule_free(rule);
+ if (IS_ERR(rule->label))
return PTR_ERR(rule->label);
- }
-
*vrule = rule;
+
return 0;
}