]> git.karo-electronics.de Git - karo-tx-linux.git/commit
selinux: remove 'flags' parameter from inode_has_perm
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Oct 2013 19:54:11 +0000 (12:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Oct 2013 19:54:11 +0000 (12:54 -0700)
commit19e49834d22c2271ed1f4a03aaa4b74986447fb4
tree08ec1c521fc151b78b8d1c654d940b1e279edbe4
parent15c83d26e16d19522ebba2a8c38b77fbe64e6ca3
selinux: remove 'flags' parameter from inode_has_perm

Every single user passes in '0'.  I think we had non-zero users back in
some stone age when selinux_inode_permission() was implemented in terms
of inode_has_perm(), but that complicated case got split up into a
totally separate code-path so that we could optimize the much simpler
special cases.

See commit 2e33405785d3 ("SELinux: delay initialization of audit data in
selinux_inode_permission") for example.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
security/selinux/hooks.c