SUNRPC: support abstract unix socket addresses
authorNeilBrown <neilb@suse.de>
Wed, 10 May 2023 22:06:24 +0000 (08:06 +1000)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 19 Jun 2023 16:12:22 +0000 (12:12 -0400)
commit4388ce05fa38b17e7d9ddabffcb16ed778ee417c
tree8cf67d53e7769d9901f7dd165035ba89c38eacc0
parent86e2e1f6d9215bfec88b82c16936ba0f3ddaeb00
SUNRPC: support abstract unix socket addresses

An "abtract" address for an AF_UNIX socket start with a nul and can
contain any bytes for the given length, but traditionally doesn't
contain other nuls.  When reported, the leading nul is replaced by '@'.

sunrpc currently rejects connections to these addresses and reports them
as an empty string.  To provide support for future use of these
addresses, allow them for outgoing connections and report them more
usefully.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/clnt.c
net/sunrpc/xprtsock.c