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)
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>

No differences found