linux/security/apparmor
John Johansen be79d7fa43 apparmor: fix change_hat not finding hat after policy replacement
commit 3d40658c97 upstream.

After a policy replacement, the task cred may be out of date and need
to be updated. However change_hat is using the stale profiles from
the out of date cred resulting in either: a stale profile being applied
or, incorrect failure when searching for a hat profile as it has been
migrated to the new parent profile.

Fixes: 01e2b670aa (failure to find hat)
Fixes: 898127c34e (stale policy being applied)
Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1000287
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-12-02 09:09:01 +01:00
..
include
.gitignore
apparmorfs.c
audit.c
capability.c
context.c
crypto.c
domain.c apparmor: fix change_hat not finding hat after policy replacement 2016-12-02 09:09:01 +01:00
file.c
ipc.c
Kconfig
lib.c
lsm.c
Makefile
match.c
path.c
policy_unpack.c
policy.c
procattr.c
resource.c
sid.c