diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2022-02-22 19:10:52 +0100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2022-02-28 16:26:40 +0100 |
commit | 74aaf96feaca80285912cc6f19575b3e97177918 (patch) | |
tree | 6e23fda540f95144f043dc1c0588b9ea3135f9bc /net/sunrpc/svcauth.c | |
parent | NFSD: Move svc_serv_ops::svo_function into struct svc_serv (diff) | |
download | linux-74aaf96feaca80285912cc6f19575b3e97177918.tar.xz linux-74aaf96feaca80285912cc6f19575b3e97177918.zip |
SUNRPC: Teach server to recognize RPC_AUTH_TLS
Initial support for the RPC_AUTH_TLS authentication flavor enables
NFSD to eventually accept an RPC_AUTH_TLS probe from clients. This
patch simply prevents NFSD from rejecting these probes completely.
In the meantime, graft this support in now so that RPC_AUTH_TLS
support keeps up with generic code and API changes in the RPC
server.
Down the road, server-side transport implementations will populate
xpo_start_tls when they can support RPC-with-TLS. For example, TCP
will eventually populate it, but RDMA won't.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net/sunrpc/svcauth.c')
-rw-r--r-- | net/sunrpc/svcauth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/svcauth.c b/net/sunrpc/svcauth.c index 5a8b8e03fdd4..e72ba2f13f6c 100644 --- a/net/sunrpc/svcauth.c +++ b/net/sunrpc/svcauth.c @@ -31,10 +31,12 @@ */ extern struct auth_ops svcauth_null; extern struct auth_ops svcauth_unix; +extern struct auth_ops svcauth_tls; static struct auth_ops __rcu *authtab[RPC_AUTH_MAXFLAVOR] = { [RPC_AUTH_NULL] = (struct auth_ops __force __rcu *)&svcauth_null, [RPC_AUTH_UNIX] = (struct auth_ops __force __rcu *)&svcauth_unix, + [RPC_AUTH_TLS] = (struct auth_ops __force __rcu *)&svcauth_tls, }; static struct auth_ops * |