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)
committerPaul Moore <paul@paul-moore.com>
Mon, 9 Dec 2019 23:28:56 +0000 (18:28 -0500)
commit1a37079c236d55fb31ebbf4b59945dab8ec8764c
tree7981c80629949905c03d4ca9618c6448e0983236
parent59438b46471ae6cdfb761afc8c9beaf1e428a331
selinux: revert "stop passing MAY_NOT_BLOCK to the AVC upon follow_link"

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>
security/selinux/avc.c
security/selinux/hooks.c
security/selinux/include/avc.h