aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2013-08-08 10:57:56 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-08-08 11:46:25 -0400
commit97431204ea005ec8070ac94bc3251e836daa7ca7 (patch)
treec60d367e3fe8ea1cbedce1e95c071582eac8eabe /fs/nfs/nfs4proc.c
parent5ec16a8500d339b0e7a0cc76b785d18daad354d4 (diff)
NFSv4.1 Use clientid management rpc_clnt for secinfo_no_name
As per RFC 5661 Security Considerations Commit 4edaa308 "NFS: Use "krb5i" to establish NFSv4 state whenever possible" uses the nfs_client cl_rpcclient for all clientid management operations. Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index f81dcec6fdfe..f50ad28689e4 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -7090,6 +7090,10 @@ out:
7090 return status; 7090 return status;
7091} 7091}
7092 7092
7093/**
7094 * Use the state managment nfs_client cl_rpcclient, which uses krb5i (if
7095 * possible) as per RFC3530bis and RFC5661 Security Considerations sections
7096 */
7093static int 7097static int
7094_nfs41_proc_secinfo_no_name(struct nfs_server *server, struct nfs_fh *fhandle, 7098_nfs41_proc_secinfo_no_name(struct nfs_server *server, struct nfs_fh *fhandle,
7095 struct nfs_fsinfo *info, struct nfs4_secinfo_flavors *flavors) 7099 struct nfs_fsinfo *info, struct nfs4_secinfo_flavors *flavors)
@@ -7105,7 +7109,8 @@ _nfs41_proc_secinfo_no_name(struct nfs_server *server, struct nfs_fh *fhandle,
7105 .rpc_argp = &args, 7109 .rpc_argp = &args,
7106 .rpc_resp = &res, 7110 .rpc_resp = &res,
7107 }; 7111 };
7108 return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); 7112 return nfs4_call_sync(server->nfs_client->cl_rpcclient, server, &msg,
7113 &args.seq_args, &res.seq_res, 0);
7109} 7114}
7110 7115
7111static int 7116static int