apparmor: fix regression in mount mediation when feature set is pinned
authorJohn Johansen <john.johansen@canonical.com>
Thu, 7 Dec 2017 08:28:27 +0000 (00:28 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Fri, 5 Jan 2018 23:07:42 +0000 (15:07 -0800)
commit5b9f57cf47b87f07210875d6a24776b4496b818d
treeb3c7dc808d1a67ca1bd9379c532af6e1a67b643f
parent30a7acd573899fd8b8ac39236eff6468b195ac7d
apparmor: fix regression in mount mediation when feature set is pinned

When the mount code was refactored for Labels it was not correctly
updated to check whether policy supported mediation of the mount
class.  This causes a regression when the kernel feature set is
reported as supporting mount and policy is pinned to a feature set
that does not support mount mediation.

BugLink: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882697#41
Fixes: 2ea3ffb7782a ("apparmor: add mount mediation")
Reported-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/mount.c