apparmor: change how profile replacement update is done
authorJohn Johansen <john.johansen@canonical.com>
Thu, 11 Jul 2013 04:07:43 +0000 (21:07 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 14 Aug 2013 18:42:06 +0000 (11:42 -0700)
commit77b071b34045a0c65d0e1f85f3d47fd2b8b7a8a1
treeb0b2c38b79969ac7b9439389888f6a1ac14a32a7
parent01e2b670aa898a39259bc85c78e3d74820f4d3b6
apparmor: change how profile replacement update is done

remove the use of replaced by chaining and move to profile invalidation
and lookup to handle task replacement.

Replacement chaining can result in large chains of profiles being pinned
in memory when one profile in the chain is use. With implicit labeling
this will be even more of a problem, so move to a direct lookup method.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/context.c
security/apparmor/domain.c
security/apparmor/include/context.h
security/apparmor/include/policy.h
security/apparmor/lsm.c
security/apparmor/policy.c