]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit8bb79224b87aab92071e94d46e70bd160d89bf34
treedab47cbb434876e5916f18b738ef8bd3fe1e1ce1
parentdb2e747b14991a4c6a5c98b0e5f552a193237c03
[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