mirror of https://gitee.com/openkylin/linux.git
switch path_init() to exec_permission()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
6f28610974
commit
78f32a9b47
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue