switch path_init() to exec_permission()
Al Viro [Sun, 19 Jun 2011 15:54:42 +0000 (11:54 -0400)]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

fs/namei.c

index 7c8a930..cf25546 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;
                }