]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:18:20 +0000 (11:18 +0200)
commit6e975a9b67984471a73821547301d374f2720ac9
treeac3185bc7fa342b073127dd8184443cf86e65ee8
parent830502387a2ac3b22189a0ba075317fc36442c1c
apparmor: Fix failed mount permission check error message

commit 5fbf7a4bd51b29fb4618515aa91a83be79cb2cc0 upstream.

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: 559bef1f8ff1 ("apparmor: add mount mediation")
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
security/apparmor/mount.c