apparmor: fix profile lookup for unconfined
authorJohn Johansen <john.johansen@canonical.com>
Wed, 16 May 2012 18:00:05 +0000 (11:00 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Fri, 18 May 2012 18:09:28 +0000 (11:09 -0700)
commitbf83208e0b7f5938f5a7f6d9dfa9960bf04692fa
tree6c3d31ea4f48a684c87504c229c7db474119437a
parentfbbb456347b21279a379b42eeb31151c33d8dd49
apparmor: fix profile lookup for unconfined

BugLink: http://bugs.launchpad.net/bugs/978038
also affects apparmor portion of
BugLink: http://bugs.launchpad.net/bugs/987371
The unconfined profile is not stored in the regular profile list, but
change_profile and exec transitions may want access to it when setting
up specialized transitions like switch to the unconfined profile of a
new policy namespace.

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