android_kernel_xiaomi_sm7250/fs/nfsd
J. Bruce Fields 7fc90ec93a [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>
2006-06-30 11:25:40 -07:00
..
auth.c [PATCH] knfsd: nfsd: nfsd_setuser doesn't really need to modify rqstp->rq_cred. 2006-04-11 06:18:52 -07:00
export.c [PATCH] knfsd: fixing missing 'expkey' support for fsid type 3 2006-06-30 11:25:39 -07:00
lockd.c
Makefile
nfs2acl.c
nfs3acl.c
nfs3proc.c [PATCH] knfsd: Correct reserved reply space for read requests. 2006-04-11 06:18:51 -07:00
nfs3xdr.c
nfs4acl.c [PATCH] knfsd: nfsd4: better nfs4acl errors 2006-04-11 06:18:51 -07:00
nfs4callback.c [PATCH] knfsd: nfsd4: nfsd4_probe_callback cleanup 2006-04-11 06:18:53 -07:00
nfs4idmap.c [PATCH] knfsd: Convert sunrpc_cache to use krefs 2006-03-27 08:44:43 -08:00
nfs4proc.c [PATCH] knfsd: nfsd4: remove nfsd_setuser from putrootfh 2006-04-11 06:18:52 -07:00
nfs4recover.c [PATCH] nfsd4: recovery lookup dir check 2006-01-18 19:20:26 -08:00
nfs4state.c [PATCH] knfsd: nfsd4: fix open_confirm locking 2006-06-30 11:25:40 -07:00
nfs4xdr.c [PATCH] VFS: Permit filesystem to perform statfs with a known root dentry 2006-06-23 07:42:45 -07:00
nfscache.c [PATCH] fs: use list_move() 2006-06-26 09:58:18 -07:00
nfsctl.c [PATCH] VFS: Permit filesystem to override root dentry on mount 2006-06-23 07:42:45 -07:00
nfsfh.c [PATCH] knfsd: nfsd: call nfsd_setuser() on fh_compose(), fix nfsd4 permissions problem 2006-06-30 11:25:40 -07:00
nfsproc.c [PATCH] knfsd: Correct reserved reply space for read requests. 2006-04-11 06:18:51 -07:00
nfssvc.c [PATCH] fs: Use ARRAY_SIZE macro 2006-03-24 07:33:19 -08:00
nfsxdr.c [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
stats.c [PATCH] Make most file operations structs in fs/ const 2006-03-28 09:16:06 -08:00
vfs.c [PATCH] knfsd: improve the test for cross-device-rename in nfsd 2006-06-30 11:25:39 -07:00