Skip to content
Snippets Groups Projects
Commit 78f32a9b authored by Al Viro's avatar Al Viro
Browse files

switch path_init() to exec_permission()


Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 6f286109
No related branches found
No related tags found
No related merge requests found
...@@ -1554,7 +1554,7 @@ static int path_init(int dfd, const char *name, unsigned int flags, ...@@ -1554,7 +1554,7 @@ static int path_init(int dfd, const char *name, unsigned int flags,
if (!S_ISDIR(dentry->d_inode->i_mode)) if (!S_ISDIR(dentry->d_inode->i_mode))
goto fput_fail; goto fput_fail;
retval = file_permission(file, MAY_EXEC); retval = exec_permission(dentry->d_inode, 0);
if (retval) if (retval)
goto fput_fail; goto fput_fail;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment