]> 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)
commit7daa950756acfb1c4afbd0e2a55778c647962d70
tree0168c39c9e3265e7a053dbcbea09dc2d4864f16b
parentbb2d4d891a54b39c8d63bcd0881163509919c193
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