]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: fix race condition in null profile creation
authorJohn Johansen <john.johansen@canonical.com>
Wed, 16 Aug 2017 12:40:49 +0000 (05:40 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Fri, 22 Sep 2017 20:00:58 +0000 (13:00 -0700)
commitd68423fd900466b0ecce4ef618bd7840f7ba80c3
tree0168c39c9e3265e7a053dbcbea09dc2d4864f16b
parent1d90ad290d67bfcbfd7f37d6ff0976b71ac8a2a3
apparmor: fix race condition in null profile creation

There is a race when null- profile is being created between the
initial lookup/creation of the profile and lock/addition of the
profile. This could result in multiple version of a profile being
added to the list which need to be removed/replaced.

Since these are learning profile their is no affect on mediation.

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