commit | 78f32a9b479e9b9f1ce2bf620a7602c1cdbc4c8e | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun Jun 19 11:54:42 2011 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed Jul 20 01:43:08 2011 -0400 |
tree | 1c1d61bbe0587edb29f1290efaafcdeee0cb814e | |
parent | 6f2861097467852f2271c2b40f9c3d1d01757048 [diff] [blame] |
switch path_init() to exec_permission() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/namei.c b/fs/namei.c index 7c8a930..cf25546 100644 --- a/fs/namei.c +++ b/fs/namei.c
@@ -1554,7 +1554,7 @@ 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; }