提交 78f32a9b 编写于 作者: A Al Viro

switch path_init() to exec_permission()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册