]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
selinux: revert "stop passing MAY_NOT_BLOCK to the AVC upon follow_link"
authorStephen Smalley <sds@tycho.nsa.gov>
Fri, 22 Nov 2019 17:22:44 +0000 (12:22 -0500)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 17 Feb 2020 11:37:07 +0000 (12:37 +0100)
commit41d5ff49e53a6cd5df9b6648b42c7bf92d4f3ef4
treeddaf750c1cf41f40c5e0eee5da4a5acb568d756a
parent68c553775296b92daa20f24f6077b996d9e48a9b
selinux: revert "stop passing MAY_NOT_BLOCK to the AVC upon follow_link"

BugLink: https://bugs.launchpad.net/bugs/1863589
commit 1a37079c236d55fb31ebbf4b59945dab8ec8764c upstream.

This reverts commit e46e01eebbbc ("selinux: stop passing MAY_NOT_BLOCK
to the AVC upon follow_link"). The correct fix is to instead fall
back to ref-walk if audit is required irrespective of the specific
audit data type.  This is done in the next commit.

Fixes: e46e01eebbbc ("selinux: stop passing MAY_NOT_BLOCK to the AVC upon follow_link")
Reported-by: Will Deacon <will@kernel.org>
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
security/selinux/avc.c
security/selinux/hooks.c
security/selinux/include/avc.h