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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:34:19 +0000 (16:34 -0500)
commit3b2e595dfe2bbbedee5cf2298739d9b6663e7d6d
treeaeb7fd83bbe630f1fc13f8275a7cf67ca2f136e7
parent837c36e0451f14225e684bb4942a9f4b4eed3cb7
selinux: revert "stop passing MAY_NOT_BLOCK to the AVC upon follow_link"

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