]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit290638a52a808d658bd04b746b3ca46886c157e0
tree0168c39c9e3265e7a053dbcbea09dc2d4864f16b
parentd07881d2edb0ab783846730629ac2faeaafdf4f1
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