Commit 78f32a9b authored by Al Viro's avatar Al Viro

switch path_init() to exec_permission()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 6f286109
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment