Commit 2885617f authored by Stefan Bader's avatar Stefan Bader

Revert "UBUNTU: SAUCE: apparmor: fix ns ref count link when removing profiles from policy"

This reverts commit d8028df7.

BugLink: https://bugs.launchpad.net/bugs/1666897Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
parent 0448977c
......@@ -1104,13 +1104,11 @@ ssize_t aa_remove_profiles(struct aa_ns *view, struct aa_label *label,
/* don't fail removal if audit fails */
(void) audit_policy(label, OP_PROF_RM, ns_name, name, info, error);
aa_put_ns(ns);
aa_put_profile(profile);
return size;
fail_ns_lock:
mutex_unlock(&ns->lock);
aa_put_ns(ns);
fail:
(void) audit_policy(label, OP_PROF_RM, ns_name, name, info, error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment