switch path_init() to exec_permission()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 19 Jun 2011 15:54:42 +0000 (11:54 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 Jul 2011 05:43:08 +0000 (01:43 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c

index 7c8a93042e63885839cedafbbb9207e892dea0ca..cf2554635a1c20976563d44691f206b68b6d43a8 100644 (file)
@@ -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;
                }