summaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-06-19 17:54:42 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-20 07:43:08 +0200
commit78f32a9b479e9b9f1ce2bf620a7602c1cdbc4c8e (patch)
tree1c1d61bbe0587edb29f1290efaafcdeee0cb814e /fs/namei.c
parentswitch udf_ioctl() to inode_permission() (diff)
downloadlinux-78f32a9b479e9b9f1ce2bf620a7602c1cdbc4c8e.tar.xz
linux-78f32a9b479e9b9f1ce2bf620a7602c1cdbc4c8e.zip
switch path_init() to exec_permission()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 7c8a93042e63..cf2554635a1c 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -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;
}