]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
UBUNTU: SAUCE: apparmor: ensure that repacedby sharing is done correctly
authorJohn Johansen <john.johansen@canonical.com>
Tue, 13 Oct 2015 16:35:13 +0000 (09:35 -0700)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:21:35 +0000 (10:21 +0100)
commitb9ccf02fa04509bd8a7c2d8ff93797a3812d3052
tree6fe444f94cf51234933c95e4b2d125499864410e
parentb3992f74b697f752593f77dcedc0d323961ef901
UBUNTU: SAUCE: apparmor: ensure that repacedby sharing is done correctly

don't put the reference when sharing a replacedby until after all
over references are gotten, otherwise the label might drop to a 0
refcount and start being freed, even though it should be held by
the shared replacedby.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
security/apparmor/label.c