diff options
author | 2014-05-19 13:40:22 -0400 | |
---|---|---|
committer | 2014-05-22 15:55:48 -0400 | |
commit | 16e4d93f6de7063800f3f5e68f064b0ff8fae9b7 (patch) | |
tree | eb964368d663b815cd56163366e4c67ed6bf392e /net/sunrpc/svc_xprt.c | |
parent | nfsd: remove nfsd4_free_slab (diff) | |
download | linux-16e4d93f6de7063800f3f5e68f064b0ff8fae9b7.tar.gz linux-16e4d93f6de7063800f3f5e68f064b0ff8fae9b7.tar.bz2 linux-16e4d93f6de7063800f3f5e68f064b0ff8fae9b7.zip |
NFSD: Ignore client's source port on RDMA transports
An NFS/RDMA client's source port is meaningless for RDMA transports.
The transport layer typically sets the source port value on the
connection to a random ephemeral port.
Currently, NFS server administrators must specify the "insecure"
export option to enable clients to access exports via RDMA.
But this means NFS clients can access such an export via IP using an
ephemeral port, which may not be desirable.
This patch eliminates the need to specify the "insecure" export
option to allow NFS/RDMA clients access to an export.
BugLink: https://bugzilla.linux-nfs.org/show_bug.cgi?id=250
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svc_xprt.c')
-rw-r--r-- | net/sunrpc/svc_xprt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index 06c6ff0cb911..614956f1777e 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c @@ -793,7 +793,7 @@ int svc_recv(struct svc_rqst *rqstp, long timeout) clear_bit(XPT_OLD, &xprt->xpt_flags); - rqstp->rq_secure = svc_port_is_privileged(svc_addr(rqstp)); + rqstp->rq_secure = xprt->xpt_ops->xpo_secure_port(rqstp); rqstp->rq_chandle.defer = svc_defer; if (serv->sv_stats) |