]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 17 Oct 2022 09:57:15 +0000 (11:57 +0200)
commita397b00184c593e3f4af0e42ad41cdffe2176805
tree552ef4816d2c2c5e43e8e1f556a18893a0c1d789
parentbec2be953c5f963c77a7c8f9e7a7a18d99cb9587
apparmor: Fix failed mount permission check error message

BugLink: https://bugs.launchpad.net/bugs/1990564
commit ec240b5905bbb09a03dccffee03062cf39e38dc2 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: 2ea3ffb7782a ("apparmor: add mount mediation")
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
security/apparmor/mount.c