]> git.ipfire.org Git - thirdparty/linux.git/commit - fs/nfsd/nfsctl.c
SUNRPC: Cache the process user cred in the RPC server listener
authorTrond Myklebust <trondmy@gmail.com>
Tue, 9 Apr 2019 16:13:37 +0000 (12:13 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 24 Apr 2019 13:46:35 +0000 (09:46 -0400)
commit4df493a260d4c1844437b28009013d5dc408d0df
tree82fe51b97a8743281bbf7d40cdbeef9af50614bf
parente333f3bbefe3e25e2bcff58063f920a2eaba224b
SUNRPC: Cache the process user cred in the RPC server listener

In order to be able to interpret uids and gids correctly in knfsd, we
should cache the user namespace of the process that created the RPC
server's listener. To do so, we refcount the credential of that process.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/svc.c
fs/nfs/callback.c
fs/nfsd/nfsctl.c
fs/nfsd/nfsd.h
fs/nfsd/nfssvc.c
include/linux/sunrpc/svc_xprt.h
include/linux/sunrpc/svcsock.h
net/sunrpc/svc_xprt.c
net/sunrpc/svcsock.c