linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] Remote calls don't need to use privilege ports
@ 2018-02-05 16:36 Steve Dickson
  2018-02-05 16:36 ` [PATCH 1/1] rmtcalls: Don't use privileged ports for remote calls Steve Dickson
  2018-02-05 17:02 ` [PATCH 0/1] Remote calls don't need to use privilege ports Chuck Lever
  0 siblings, 2 replies; 22+ messages in thread
From: Steve Dickson @ 2018-02-05 16:36 UTC (permalink / raw)
  To: Linux NFS Mailing list

Over the weekend I did some experimenting with
the remote call code in rpcbind. The code does 
functionally work but is very antiquated when
it comes to the latest NFS versions. 

Since only UDP sockets are used to do remote calls
using the documented interfaces pmap_rmtcall() and callrpc()
calls to NFS will fail (actual times out) since UDP is no 
longer supported. 

The undocumented interface rpc_call() can be used to 
call into NFS since the protocol can specified, which 
also means the PMAPPROC_CALLIT protocol is not used.

It turns out privilege port are not needed to make
remote calls, at least with my testing. I'm thinking 
the only reason privilege ports were being uses was 
a side effect of create_rmtcall_fd() calling 
svc_tli_create() with an unbound socket. 

So the following patch simply binds the socket
before calling svc_tli_create() which means a
non-privilege port will be reserved for remote
calls. 

I'm thinking this is the simplest way to
not pollute the privilege port space. 

Steve Dickson (1):
  rmtcalls: Don't use privileged ports for remote calls.

 src/rpcb_svc_com.c | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

-- 
2.14.3


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2018-02-08  0:46 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-05 16:36 [PATCH 0/1] Remote calls don't need to use privilege ports Steve Dickson
2018-02-05 16:36 ` [PATCH 1/1] rmtcalls: Don't use privileged ports for remote calls Steve Dickson
2018-02-05 17:02 ` [PATCH 0/1] Remote calls don't need to use privilege ports Chuck Lever
2018-02-05 17:09   ` Tom Talpey
2018-02-05 17:11     ` Chuck Lever
2018-02-05 19:46     ` Steve Dickson
2018-02-07  4:35     ` NeilBrown
2018-02-07 16:09       ` Chuck Lever
2018-02-07 21:16         ` NeilBrown
2018-02-07 21:23           ` Chuck Lever
2018-02-07 23:16             ` NeilBrown
2018-02-08  0:13               ` Chuck Lever
2018-02-08  0:45                 ` NeilBrown
2018-02-08  0:46                   ` Chuck Lever
2018-02-05 19:21   ` Steve Dickson
2018-02-05 19:47     ` Chuck Lever
2018-02-06 16:37       ` Steve Dickson
2018-02-06 17:34         ` Chuck Lever
2018-02-06 18:22           ` Tom Talpey
2018-02-06 18:36             ` Chuck Lever
2018-02-07  0:15               ` Tom Talpey
2018-02-06 19:00         ` Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).