]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 5 Sep 2017 12:34:51 +0000 (07:34 -0500)
commitfc26f8fad00bf2e4517bd2552905e10a00e53f60
tree02677c480cdc31caf0d0c8fa5a2593e7dfe8f46f
parentab525797c7492e5dab02973edcc4cac0acf62012
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>
(cherry picked from commit 3aa3de2a4fb8f33ec62b00998bc6b6c6850d41b1 linux-next)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
security/apparmor/policy.c