diff options
author | Trond Myklebust <trondmy@gmail.com> | 2019-04-24 17:46:42 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2019-04-26 16:00:48 -0400 |
commit | 79caa5fad47c69874f9efc4ac3128cc3f6d36f6e (patch) | |
tree | 0172cd4c9d7525e2ebd712ff4bbefac61f046430 /fs/nfsd | |
parent | 2cfd11f16f01c0ee8f83bb07027c9d2f43565473 (diff) | |
download | linux-riscv-79caa5fad47c69874f9efc4ac3128cc3f6d36f6e.tar.gz linux-riscv-79caa5fad47c69874f9efc4ac3128cc3f6d36f6e.tar.bz2 linux-riscv-79caa5fad47c69874f9efc4ac3128cc3f6d36f6e.zip |
SUNRPC: Cache cred of process creating the rpc_client
When converting kuids to AUTH_UNIX creds, etc we will want to use the
same user namespace as the process that created the rpc client.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4callback.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index f7494be8dbe2..3a10399a0ef1 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -868,6 +868,7 @@ static int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *c .program = &cb_program, .version = 1, .flags = (RPC_CLNT_CREATE_NOPING | RPC_CLNT_CREATE_QUIET), + .cred = current_cred(), }; struct rpc_clnt *client; const struct cred *cred; |