|
@@ -1903,6 +1903,7 @@ static int path_init(int dfd, const char *name, unsigned int flags,
|
|
get_fs_pwd(current->fs, &nd->path);
|
|
get_fs_pwd(current->fs, &nd->path);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
|
|
+ /* Caller must check execute permissions on the starting path component */
|
|
struct fd f = fdget_raw(dfd);
|
|
struct fd f = fdget_raw(dfd);
|
|
struct dentry *dentry;
|
|
struct dentry *dentry;
|
|
|
|
|
|
@@ -1916,12 +1917,6 @@ static int path_init(int dfd, const char *name, unsigned int flags,
|
|
fdput(f);
|
|
fdput(f);
|
|
return -ENOTDIR;
|
|
return -ENOTDIR;
|
|
}
|
|
}
|
|
-
|
|
|
|
- retval = inode_permission(dentry->d_inode, MAY_EXEC);
|
|
|
|
- if (retval) {
|
|
|
|
- fdput(f);
|
|
|
|
- return retval;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
nd->path = f.file->f_path;
|
|
nd->path = f.file->f_path;
|