From: Linus Torvalds Date: Fri, 28 Aug 2009 18:08:31 +0000 (-0700) Subject: Simplify exec_permission_lite(), part 3 X-Git-Tag: v2.6.32-rc1~739^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb9179ead0aa0e3b7b4087cdba59baf16bbeef6d;p=pandora-kernel.git 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 Acked-by: Serge Hallyn Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed