projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f28610
)
switch path_init() to exec_permission()
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 19 Jun 2011 15:54:42 +0000
(11:54 -0400)
committer
Al 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
patch
|
blob
|
history
diff --git
a/fs/namei.c
b/fs/namei.c
index 7c8a93042e63885839cedafbbb9207e892dea0ca..cf2554635a1c20976563d44691f206b68b6d43a8 100644
(file)
--- 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;
}