Re: What to use in place of abstract unix sockets?

From: Gleb Popov <arrowd_at_freebsd.org>
Date: Mon, 13 Dec 2021 14:24:49 UTC
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.