提交 672b16b2 编写于 作者: A Al Viro

[PATCH] more nameidata removal: exec_permission_lite() doesn't need it

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 b77b0646
...@@ -460,8 +460,7 @@ static struct dentry * cached_lookup(struct dentry * parent, struct qstr * name, ...@@ -460,8 +460,7 @@ static struct dentry * cached_lookup(struct dentry * parent, struct qstr * name,
* short-cut DAC fails, then call permission() to do more * short-cut DAC fails, then call permission() to do more
* complete permission check. * complete permission check.
*/ */
static int exec_permission_lite(struct inode *inode, static int exec_permission_lite(struct inode *inode)
struct nameidata *nd)
{ {
umode_t mode = inode->i_mode; umode_t mode = inode->i_mode;
...@@ -884,7 +883,7 @@ static int __link_path_walk(const char *name, struct nameidata *nd) ...@@ -884,7 +883,7 @@ static int __link_path_walk(const char *name, struct nameidata *nd)
unsigned int c; unsigned int c;
nd->flags |= LOOKUP_CONTINUE; nd->flags |= LOOKUP_CONTINUE;
err = exec_permission_lite(inode, nd); err = exec_permission_lite(inode);
if (err == -EAGAIN) if (err == -EAGAIN)
err = vfs_permission(nd, MAY_EXEC); err = vfs_permission(nd, MAY_EXEC);
if (err) if (err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册