]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: fix leak of null profile name if profile allocation fails
authorJohn Johansen <john.johansen@canonical.com>
Wed, 15 Nov 2017 23:25:30 +0000 (15:25 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Tue, 21 Nov 2017 10:17:13 +0000 (02:17 -0800)
commit7432a992977f6393a30737f73a11d866dcf34596
tree69a59e0adcd575811ee7b05190111929d89ca173
parentc0eef39a83284953abd0cdee79ed07f3c3d921b1
apparmor: fix leak of null profile name if profile allocation fails

Fixes: bb2d4d891a54 ("apparmor: move new_null_profile to after profile lookup fns()")
Reported-by: Seth Arnold <seth.arnold@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/policy.c