remarkable-linux/fs/nfsd
J. Bruce Fields 788c1eba50 nfsd4: fix setclientid_confirm same_cred check
New clients are created only by nfsd4_setclientid(), which always gives
any new client a unique clientid.  The only exception is in the
"callback update" case, in which case it may create an unconfirmed
client with the same clientid as a confirmed client.  In that case it
also checks that the confirmed client has the same credential.

Therefore, it is pointless for setclientid_confirm to check whether a
confirmed and unconfirmed client with the same clientid have matching
credentials--they're guaranteed to.

Instead, it should be checking whether the credential on the
setclientid_confirm matches either of those.  Otherwise, it could be
anyone sending the setclientid_confirm.  Granted, I can't see why anyone
would, but still it's probalby safer to check.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2012-05-31 20:30:03 -04:00
..
acl.h
auth.c nfsd4: move rq_flavor into svc_cred 2012-05-31 20:29:58 -04:00
auth.h
cache.h
current_stateid.h nfsd41: use current stateid by value 2012-02-15 11:20:45 -05:00
export.c nfsd4: move rq_flavor into svc_cred 2012-05-31 20:29:58 -04:00
fault_inject.c nfsd: return 0 on reads of fault injection files 2012-05-31 20:29:48 -04:00
fault_inject.h NFSD: Added fault injection 2011-11-07 21:10:47 -05:00
idmap.h nfsd: pass network context to idmap init/exit functions 2012-04-12 09:12:10 -04:00
Kconfig NFSD: Added fault injection 2011-11-07 21:10:47 -05:00
lockd.c
Makefile NFSD: Added fault injection 2011-11-07 21:10:47 -05:00
netns.h nfsd: make name-to-id cache allocated per network namespace context 2012-04-12 09:12:10 -04:00
nfs2acl.c
nfs3acl.c
nfs3proc.c
nfs3xdr.c
nfs4acl.c fs: add export.h to files using EXPORT_SYMBOL/THIS_MODULE macros 2011-10-31 19:30:31 -04:00
nfs4callback.c nfsd4: move principal name into svc_cred 2012-05-31 20:29:55 -04:00
nfs4idmap.c nfsd4: move rq_flavor into svc_cred 2012-05-31 20:29:58 -04:00
nfs4proc.c nfsd: don't fail unchecked creates of non-special files 2012-04-11 17:49:52 -04:00
nfs4recover.c nfsd4: preserve __user annotation on cld downcall msg 2012-05-31 20:29:36 -04:00
nfs4state.c nfsd4: fix setclientid_confirm same_cred check 2012-05-31 20:30:03 -04:00
nfs4xdr.c nfsd: add IPv6 addr escaping to fs_location hosts 2012-05-31 20:29:38 -04:00
nfscache.c
nfsctl.c SUNRPC: move per-net operations from svc_destroy() 2012-05-31 20:29:40 -04:00
nfsd.h nfsd: only register cld pipe notifier when CONFIG_NFSD_V4 is enabled 2012-03-29 08:01:07 -04:00
nfsfh.c nfsd: use exp_put() for svc_export_cache put 2012-04-11 17:55:02 -04:00
nfsfh.h fs: propagate umode_t, misc bits 2012-01-03 22:55:10 -05:00
nfsproc.c
nfssvc.c SUNRPC: move per-net operations from svc_destroy() 2012-05-31 20:29:40 -04:00
nfsxdr.c
state.h nfsd4: move principal name into svc_cred 2012-05-31 20:29:55 -04:00
stats.c SUNRPC: register service stats /proc entries in passed network namespace context 2012-01-31 19:28:18 -05:00
vfs.c nfsd: trivial: use SEEK_SET instead of 0 in vfs_llseek 2012-04-25 15:38:23 -04:00
vfs.h nfsd: vfs_llseek() with 32 or 64 bit offsets (hashes) 2012-03-18 22:44:50 -04:00
xdr.h
xdr3.h
xdr4.h nfsd4: int/__be32 fixes 2012-05-31 20:29:37 -04:00