linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Avoid IANA-assigned port numbers
@ 2018-02-25 18:17 Chuck Lever
  2018-02-25 18:17 ` [PATCH v3 1/4] Add an internal helper for binding to a dynamically-assigned port Chuck Lever
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Chuck Lever @ 2018-02-25 18:17 UTC (permalink / raw)
  To: steved; +Cc: linux-nfs, libtirpc-devel

Following up on https://bugzilla.linux-nfs.org/show_bug.cgi?id=320 .

Here's a possible way to get libtirpc to avoid IANA-assigned port
numbers when a caller requests a dynamically-assigned port. This
approach also reduces the number of reserved ports used by long
running user space RPC daemons, and can be applied in combination
with changing bindresvport(3) to skip port numbers that appear in
/etc/services.

Changes since v2:
- make port assignment more random across serial callers and
  processes

Changes since RFC:
- fixed bugs
- re-organized the patches slightly
- clarified the patch descriptions

---

Chuck Lever (4):
      Add an internal helper for binding to a dynamically-assigned port
      Avoid choosing reserved ports in svc_tli_create(3)
      Avoid choosing reserved ports in clnt_tli_create(3)
      Avoid choosing reserved ports in legacy RPC APIs


 src/Makefile.am    |    5 +-
 src/binddynport.c  |  139 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/clnt_generic.c |    4 +
 src/rpc_soc.c      |   10 +---
 src/svc_generic.c  |   12 +---
 5 files changed, 153 insertions(+), 17 deletions(-)
 create mode 100644 src/binddynport.c

--
Chuck Lever

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

end of thread, other threads:[~2018-03-01 13:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-25 18:17 [PATCH v3 0/4] Avoid IANA-assigned port numbers Chuck Lever
2018-02-25 18:17 ` [PATCH v3 1/4] Add an internal helper for binding to a dynamically-assigned port Chuck Lever
2018-02-25 18:17 ` [PATCH v3 2/4] Avoid choosing reserved ports in svc_tli_create(3) Chuck Lever
2018-02-25 18:17 ` [PATCH v3 3/4] Avoid choosing reserved ports in clnt_tli_create(3) Chuck Lever
2018-02-25 18:17 ` [PATCH v3 4/4] Avoid choosing reserved ports in legacy RPC APIs Chuck Lever
2018-03-01 13:20 ` [PATCH v3 0/4] Avoid IANA-assigned port numbers Steve Dickson

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).