Skip to content

Support abstract address for rpcbind in kernel

NeilBrown linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2SUNRPC: support abstract unix socket addressesnet/sunrpc/clnt.c net/sunrpc/xprtsock.c+13 -40 replies
2/2SUNRPC: attempt to reach rpcbind with an abstract socket namenet/sunrpc/rpcb_clnt.c+31 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Support abstract address for rpcbind in kernel

These two patches cause the SUNRPC layer in Linux to attempt to contact rpcbind using an AF_UNIX socket with an abstract address before the existing attempts of AF_UNIX to a socket in the filesystem, and IP to a well known port.

This allows the benefits of an AF_UNIX connection combined with the benefits of honouring the network namespace when connection rpcbind.

For this to be useful, rpcbind must listed on that name, and user-space tools must also connect to the same address. This requires changes to rpcbind and too libtirpc. libtirpc currently has a bug which causes sockets bountd to abstract addresses to appear to be unbound, so asking systemd to pass rpcbind an abstract socket doesn't work - rpcbind rejects it.

Patches for rpcbind and libtirpc will follow.

NeilBrown

---

NeilBrown (2):
SUNRPC: support abstract unix socket addresses
SUNRPC: attempt to reach rpcbind with an abstract socket name

 net/sunrpc/clnt.c      |  8 ++++++--
 net/sunrpc/rpcb_clnt.c | 39 +++++++++++++++++++++++++++++++--------
 net/sunrpc/xprtsock.c  |  9 +++++++--
 3 files changed, 44 insertions(+), 12 deletions(-)

--
Signature