Date: Mon, 13 Dec 2021 17:24:49 +0300 From: Gleb Popov <arrowd@freebsd.org> To: 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: <CALH631mxFTXX-F-fosnwQxdjBnzKN6Fy_NzzUQ=rgQ2ADJPCfA@mail.gmail.com> In-Reply-To: <CAOtMX2ip78bYHHLmR0DC7mvy3yBkH0i74vtHQ=Lu-mFVLAtB=w@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>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000065945e05d307d7fc Content-Type: text/plain; charset="UTF-8" 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. --00000000000065945e05d307d7fc--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALH631mxFTXX-F-fosnwQxdjBnzKN6Fy_NzzUQ=rgQ2ADJPCfA>