diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-06-07 09:59:15 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2023-06-19 12:28:10 -0400 |
commit | 75eb6af7acdf566c68d61e98e67ee2f235201c02 (patch) | |
tree | 93d9f39c9b7af91c8ecab6309a1b48847d028fc9 /net/sunrpc/sysfs.c | |
parent | dea034b963c8901bdcc3d3880c04f0d75c95112f (diff) | |
download | linux-75eb6af7acdf566c68d61e98e67ee2f235201c02.tar.gz linux-75eb6af7acdf566c68d61e98e67ee2f235201c02.tar.bz2 linux-75eb6af7acdf566c68d61e98e67ee2f235201c02.zip |
SUNRPC: Add a TCP-with-TLS RPC transport class
Use the new TLS handshake API to enable the SunRPC client code
to request a TLS handshake. This implements support for RFC 9289,
only on TCP sockets.
Upper layers such as NFS use RPC-with-TLS to protect in-transit
traffic.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net/sunrpc/sysfs.c')
-rw-r--r-- | net/sunrpc/sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/sysfs.c b/net/sunrpc/sysfs.c index 0d0db4e1064e..5c8ecdaaa985 100644 --- a/net/sunrpc/sysfs.c +++ b/net/sunrpc/sysfs.c @@ -239,6 +239,7 @@ static ssize_t rpc_sysfs_xprt_dstaddr_store(struct kobject *kobj, if (!xprt) return 0; if (!(xprt->xprt_class->ident == XPRT_TRANSPORT_TCP || + xprt->xprt_class->ident == XPRT_TRANSPORT_TCP_TLS || xprt->xprt_class->ident == XPRT_TRANSPORT_RDMA)) { xprt_put(xprt); return -EOPNOTSUPP; |