]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
UBUNTU: SAUCE: apparmor: fix memory leak when duplicate profile load
authorJohn Johansen <john.johansen@canonical.com>
Sat, 14 Apr 2018 05:52:58 +0000 (22:52 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 16 Apr 2018 19:09:23 +0000 (14:09 -0500)
commit777ad6b078db721e3ad693ddf896acb60da089e5
tree79f686d63cb542012623197dfa8f8f3f0683fcef
parent81619e0e14fbe51a0f918deba9d620651d042a10
UBUNTU: SAUCE: apparmor: fix memory leak when duplicate profile load

AppArmor is leaking the newly loaded profile and its proxy when
the profile is an exact match to the currently loaded version.

In this case the match check results in the profile being skipped
and put with out dealing with the proxy and forwarding thus creating
a circular refcount and a leak.

BugLink: http://bugs.launchpad.net/bugs/1750594
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
security/apparmor/policy.c