]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: convert to profile block critical sections
authorJohn Johansen <john.johansen@canonical.com>
Fri, 9 Jun 2017 09:08:28 +0000 (02:08 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 11 Jun 2017 00:11:34 +0000 (17:11 -0700)
commit3c69b947c277badf5e1a0de3831a12d9c01df712
tree68dc51534745fb230ec35e1d56bb158fb99b225b
parent7bfe695105fa60fea96d9c287c3a917770cfcdad
apparmor: convert to profile block critical sections

There are still a few places where profile replacement fails to update
and a stale profile is used for mediation. Fix this by moving to
accessing the current label through a critical section that will
always ensure mediation is using the current label regardless of
whether the tasks cred has been updated or not.

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