]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
vfs: move MAY_EXEC check from __lookup_hash()
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 26 Mar 2012 10:54:21 +0000 (12:54 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 31 Mar 2012 20:03:16 +0000 (16:03 -0400)
commitcda309de253f338b04d15b4478e45fc3a0fcc7a3
tree93b5c767935ee7ec8a664f01ba684415754d929b
parent3637c05d881b2b7bab36f339245b8963f5b29c9f
vfs: move MAY_EXEC check from __lookup_hash()

The only caller of __lookup_hash() that needs the exec permission check on
parent is lookup_one_len().

All lookup_hash() callers already checked permission in LOOKUP_PARENT walk.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c