switch path_init() to exec_permission()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2011-06-19 11:54:42 -04:00
parent 6f28610974
commit 78f32a9b47

View File

@ -1554,7 +1554,7 @@ static int path_init(int dfd, const char *name, unsigned int flags,
if (!S_ISDIR(dentry->d_inode->i_mode))
goto fput_fail;
retval = file_permission(file, MAY_EXEC);
retval = exec_permission(dentry->d_inode, 0);
if (retval)
goto fput_fail;
}