selinux: clean up selinux_inode_permission MAY_NOT_BLOCK tests
authorStephen Smalley <sds@tycho.nsa.gov>
Fri, 22 Nov 2019 21:16:56 +0000 (16:16 -0500)
committerPaul Moore <paul@paul-moore.com>
Mon, 9 Dec 2019 23:47:27 +0000 (18:47 -0500)
commit5298d0b9b98089f5af406f7e05a41a53f9a15c11
treea660f0ec35c8f544da3ccfe79ac8a44024832fbb
parent0188d5c025ca8fe756ba3193bd7d150139af5a88
selinux: clean up selinux_inode_permission MAY_NOT_BLOCK tests

Through a somewhat convoluted series of changes, we have ended up
with multiple unnecessary occurrences of (flags & MAY_NOT_BLOCK)
tests in selinux_inode_permission().  Clean it up and simplify.
No functional change.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c