diff options
author | NeilBrown <neilb@suse.de> | 2006-07-30 12:03:16 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-31 22:28:37 +0200 |
commit | d1bbf14f37261c2c0dba71404602e1ddcec069d2 (patch) | |
tree | 7b01141c31b73f277079cbcdb88be6ac8da2add1 /security | |
parent | [PATCH] mce section fix (diff) | |
download | linux-d1bbf14f37261c2c0dba71404602e1ddcec069d2.tar.xz linux-d1bbf14f37261c2c0dba71404602e1ddcec069d2.zip |
[PATCH] knfsd: Fix stale file handle problem with subtree_checking.
A recent commit (7fc90ec93a5eb71f4b08403baf5ba7176b3ec6b1) moved the
call to nfsd_setuser out of the 'find a dentry for a filehandle' branch
of fh_verify so that it would always be called.
This had the unfortunately side-effect of moving *after* the call to
decode_fh, so the prober fsuid was not set when nfsd_acceptable was called,
the 'permission' check did the wrong thing.
This patch moves the nfsd_setuser call back where it was, and add as call
in the other branch of the if.
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions