summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2018-08-15 10:22:36 -0400
committerSteve Dickson <steved@redhat.com>2018-08-15 10:22:36 -0400
commit2e9c289246c647e25649914bdb0d9400c66f486e (patch)
treeb0e60eb3e72d1164242efbe06e16bae1dc7b07a2 /src
parent91973cc5f84884cd6a80c4865d5153cfd3be734f (diff)
downloadrpcbind-2e9c289246c647e25649914bdb0d9400c66f486e.tar.gz
rpcbind: Disable remote calls by defaultpcbind-0_2_5-rc4
Added a new configuration flag --enable-rmtcalls which will be needed to enable the remote call functionality. This also stops rpcbind from opening up random listening ports. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/rpcbind.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rpcbind.c b/src/rpcbind.c
index 8db8dfc..cc848b1 100644
--- a/src/rpcbind.c
+++ b/src/rpcbind.c
@@ -794,12 +794,14 @@ got_socket:
}
}
#endif
+
+
+#ifdef RMTCALLS
/*
* rmtcall only supported on CLTS transports for now.
*/
if (nconf->nc_semantics == NC_TPI_CLTS) {
status = create_rmtcall_fd(nconf);
-
#ifdef RPCBIND_DEBUG
if (debugging) {
if (status < 0) {
@@ -813,6 +815,8 @@ got_socket:
}
#endif
}
+#endif
+
return (0);
error:
close(fd);