diff options
author | 2009-08-28 11:08:31 -0700 | |
---|---|---|
committer | 2009-09-08 11:07:44 -0700 | |
commit | cb9179ead0aa0e3b7b4087cdba59baf16bbeef6d (patch) | |
tree | 04d91abc90dc3f48d70bc95bc9bed6f561369008 /scripts/selinux/genheaders | |
parent | Simplify exec_permission_lite() further (diff) | |
download | wireguard-linux-cb9179ead0aa0e3b7b4087cdba59baf16bbeef6d.tar.xz wireguard-linux-cb9179ead0aa0e3b7b4087cdba59baf16bbeef6d.zip |
Simplify exec_permission_lite(), part 3
Don't call down to the generic inode_permission() function just to
call the inode-specific permission function - just do it directly.
The generic inode_permission() code does things like checking MAY_WRITE
and devcgroup_inode_permission(), neither of which are relevant for the
light pathname walk permission checks (we always do just MAY_EXEC, and
the inode is never a special device).
Reviewed-by: James Morris <jmorris@namei.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/selinux/genheaders')
0 files changed, 0 insertions, 0 deletions