]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
AppArmor: Fix locking from removal of profile namespace
authorJohn Johansen <john.johansen@canonical.com>
Sat, 28 Aug 2010 01:33:29 +0000 (18:33 -0700)
committerJames Morris <jmorris@namei.org>
Tue, 7 Sep 2010 23:19:34 +0000 (09:19 +1000)
commit999b4f0aa2314b76857775334cb94bafa053db64
tree0b2b9e6d54415d0d6f6ff59526c68108c09d1fd7
parent04ccd53f09741c4bc54ab36db000bc1383e4812e
AppArmor: Fix locking from removal of profile namespace

The locking for profile namespace removal is wrong, when removing a
profile namespace, it needs to be removed from its parent's list.
Lock the parent of namespace list instead of the namespace being removed.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/apparmor/policy.c