]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: Fix failed mount permission check error message
authorJohn Johansen <john.johansen@canonical.com>
Tue, 25 Jan 2022 08:37:42 +0000 (00:37 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Sat, 9 Jul 2022 22:13:59 +0000 (15:13 -0700)
commitb3a77b773da6522d6bd8c532fa6fa3fbcd62d343
tree8c7d00f2aae7a858eddc862a10b860eb332f01cf
parent2640647049316b51e3e855e4a462e21c5f2e3d57
apparmor: Fix failed mount permission check error message

When the mount check fails due to a permission check failure instead
of explicitly at one of the subcomponent checks, AppArmor is reporting
a failure in the flags match. However this is not true and AppArmor
can not attribute the error at this point to any particular component,
and should only indicate the mount failed due to missing permissions.

Fixes: 650380a97cee ("apparmor: add mount mediation")
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/mount.c