summaryrefslogtreecommitdiffstats
path: root/lib/semaphore-sleepers.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2006-06-30 01:56:14 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-30 11:25:40 -0700
commit7fc90ec93a5eb71f4b08403baf5ba7176b3ec6b1 (patch)
tree4fc33145b741f153a49d3623b77de82251b7316a /lib/semaphore-sleepers.c
parenta8cddc5dfc1d03a91885ef27eb91418e665577ce (diff)
downloadlinux-7fc90ec93a5eb71f4b08403baf5ba7176b3ec6b1.tar.bz2
[PATCH] knfsd: nfsd: call nfsd_setuser() on fh_compose(), fix nfsd4 permissions problem
In the typical v2/v3 case the only new filehandles used as arguments to operations are filehandles taken directly off the wire, which don't get dentries until fh_verify() is called. But in v4 the filehandles that are arguments to operations were often created by previous operations (putrootfh, lookup, etc.) using fh_compose, which sets the dentry in the filehandle without calling nfsd_setuser(). This also means that, for example, if filesystem B is mounted on filesystem A, and filesystem A is exported without root-squashing, then a client can bypass the rootsquashing on B using a compound that starts at a filehandle in A, crosses into B using lookups, and then does stuff in B. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> 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 'lib/semaphore-sleepers.c')
0 files changed, 0 insertions, 0 deletions