From: Al Viro Date: Sun, 19 Jun 2011 05:50:08 +0000 (-0400) Subject: make exec_permission(dir) really equivalent to inode_permission(dir, MAY_EXEC) X-Git-Tag: v3.1-rc1~282^2~104 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cf27141cbe0239f48ec6f0b37bad347d51d1785;p=pandora-kernel.git make exec_permission(dir) really equivalent to inode_permission(dir, MAY_EXEC) capability overrides apply only to the default case; if fs has ->permission() that does _not_ call generic_permission(), we have no business doing them. Moreover, if it has ->permission() that does call generic_permission(), we have no need to recheck capabilities. Besides, the capability overrides should apply only if we got EACCES from acl_permission_check(); any other value (-EIO, etc.) should be returned to caller, capabilities or not capabilities. Signed-off-by: Al Viro --- Reading git-diff-tree failed