Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Dec 2021 23:53:51 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Gleb Popov <arrowd@freebsd.org>, Alan Somers <asomers@freebsd.org>
Cc:        freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   Re: What to use in place of abstract unix sockets?
Message-ID:  <91be3e0c-6c87-ef71-c54d-9049ab1ead84@grosbein.net>
In-Reply-To: <CALH631mxFTXX-F-fosnwQxdjBnzKN6Fy_NzzUQ=rgQ2ADJPCfA@mail.gmail.com>
References:  <CALH631kYAz%2B_=p6VUhxzx0tz8eox804PCK5A9POxQkZTdThZCQ@mail.gmail.com> <F0BE714E-E25B-4A49-AA6E-B0E906374446@dons.net.au> <CALH631m8P_NG3nTZ1JQ2hhZMTrAMuuGjS8Ahz_qDMu1bFDCzkw@mail.gmail.com> <CAOtMX2ip78bYHHLmR0DC7mvy3yBkH0i74vtHQ=Lu-mFVLAtB=w@mail.gmail.com> <CALH631mxFTXX-F-fosnwQxdjBnzKN6Fy_NzzUQ=rgQ2ADJPCfA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
13.12.2021 21:24, Gleb Popov wrote:

> On Sat, Dec 11, 2021 at 8:02 PM Alan Somers <asomers@freebsd.org> wrote:
> 
>> Since socketpair() doesn't work in this case, why not just use a UDP
>> socket bound to 127.0.0.1 ?
>>
> 
> This would introduce a bit of overhead as the packet would pass through the
> IP stack. Another problem is that the current code uses SOCK_STREAM socket
> type, which isn't supported by the UDP protocol. Maybe this would work with
> SCTP?
> Anyways, I'm going to try this only as a last resort.
> 
> OK, so far my options are:
> 1. Mount the directory containing UDS into chroot with nullfs.
> 2. Use PF_INET.
> 3. Do kernel-hacking and implement abstract sockets (as well as
> remount-to-readonly support for nullfs).
> 
> I'd go straight to #3 but with my skills/free time this would take a lot of
> time, so I'm going to try hacking it around with #1 and #2.
> 
> Thanks everyone for all the suggestions.

Is'nt hacking "the client" to open AF_UNIX socket before chroot() an option?





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?91be3e0c-6c87-ef71-c54d-9049ab1ead84>