]> git.baikalelectronics.ru Git - kernel.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)
commitad073c90000c337d08e0400d9c6d2de82bd5007f
tree08ec1c521fc151b78b8d1c654d940b1e279edbe4
parent5295c2975817e165d5f62535f91f2b3d0ccbc42d
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 ed8743211922 ("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