aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/client.c
diff options
context:
space:
mode:
authorTrond Myklebust <trondmy@gmail.com>2019-04-24 17:46:42 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-04-26 16:00:48 -0400
commit79caa5fad47c69874f9efc4ac3128cc3f6d36f6e (patch)
tree0172cd4c9d7525e2ebd712ff4bbefac61f046430 /fs/nfs/client.c
parentxprtrdma: Remove stale comment (diff)
downloadlinux-dev-79caa5fad47c69874f9efc4ac3128cc3f6d36f6e.tar.xz
linux-dev-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/nfs/client.c')
-rw-r--r--fs/nfs/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index f74638c5e5b4..a843cf3f6340 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -500,6 +500,7 @@ int nfs_create_rpc_client(struct nfs_client *clp,
.program = &nfs_program,
.version = clp->rpc_ops->version,
.authflavor = flavor,
+ .cred = current_cred(),
};
if (test_bit(NFS_CS_DISCRTRY, &clp->cl_flags))