Skip to content

Commit 9743120

Browse files
androsadamsonTrond Myklebust
authored andcommitted
NFSv4.1 Use clientid management rpc_clnt for secinfo_no_name
As per RFC 5661 Security Considerations Commit 4edaa30 "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>
1 parent 5ec16a8 commit 9743120

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

fs/nfs/nfs4proc.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7090,6 +7090,10 @@ nfs4_proc_layoutcommit(struct nfs4_layoutcommit_data *data, bool sync)
70907090
return status;
70917091
}
70927092

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+
*/
70937097
static int
70947098
_nfs41_proc_secinfo_no_name(struct nfs_server *server, struct nfs_fh *fhandle,
70957099
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,
71057109
.rpc_argp = &args,
71067110
.rpc_resp = &res,
71077111
};
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);
71097114
}
71107115

71117116
static int

0 commit comments

Comments
 (0)