[PATCH 0/2] Support abstract address for rpcbind in kernel
From: NeilBrown <hidden>
Date: 2023-05-10 22:08:11
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