diff options
author | Andy Adamson | 2013-08-08 16:57:55 +0200 |
---|---|---|
committer | Trond Myklebust | 2013-08-08 17:46:25 +0200 |
commit | 5ec16a8500d339b0e7a0cc76b785d18daad354d4 (patch) | |
tree | 22accf7765606b6416af9dbd0d4a70a9e1a3ddc6 /fs/nfs/nfs4proc.c | |
parent | NFSv4.1 Increase NFS4_DEF_SLOT_TABLE_SIZE (diff) | |
download | kernel-qcow2-linux-5ec16a8500d339b0e7a0cc76b785d18daad354d4.tar.gz kernel-qcow2-linux-5ec16a8500d339b0e7a0cc76b785d18daad354d4.tar.xz kernel-qcow2-linux-5ec16a8500d339b0e7a0cc76b785d18daad354d4.zip |
NFSv4.1 Use clientid management rpc_clnt for secinfo
As per RFC 3530 and 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.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index a187f4d83e98..f81dcec6fdfe 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -5794,6 +5794,10 @@ int nfs4_proc_fs_locations(struct rpc_clnt *client, struct inode *dir, return err; } +/** + * Use the state managment nfs_client cl_rpcclient, which uses krb5i (if + * possible) as per RFC3530bis and RFC5661 Security Considerations sections + */ static int _nfs4_proc_secinfo(struct inode *dir, const struct qstr *name, struct nfs4_secinfo_flavors *flavors) { int status; @@ -5809,9 +5813,10 @@ static int _nfs4_proc_secinfo(struct inode *dir, const struct qstr *name, struct .rpc_argp = &args, .rpc_resp = &res, }; + struct rpc_clnt *clnt = NFS_SERVER(dir)->nfs_client->cl_rpcclient; dprintk("NFS call secinfo %s\n", name->name); - status = nfs4_call_sync(NFS_SERVER(dir)->client, NFS_SERVER(dir), &msg, &args.seq_args, &res.seq_res, 0); + status = nfs4_call_sync(clnt, NFS_SERVER(dir), &msg, &args.seq_args, &res.seq_res, 0); dprintk("NFS reply secinfo: %d\n", status); return status; } |