]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] permission checks for chdir need special treatment only on the last step
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 16 Jul 2008 13:51:03 +0000 (09:51 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 27 Jul 2008 00:53:19 +0000 (20:53 -0400)
commitc59f77fc32fcb658950b3e567873773371735cc0
treedab47cbb434876e5916f18b738ef8bd3fe1e1ce1
parentf935a2866c63a140d3067b576c5695b55290404e
[PATCH] permission checks for chdir need special treatment only on the last step

... so we ought to pass MAY_CHDIR to vfs_permission() instead of having
it triggered on every step of preceding pathname resolution.  LOOKUP_CHDIR
is killed by that.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c
fs/open.c
include/linux/namei.h