From nobody Fri Dec 10 09:08:53 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DAB7418EAF42 for ; Fri, 10 Dec 2021 09:09:23 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from midget.dons.net.au (2403-5800-5200-4700-225-90ff-fe47-39b4.ip6.aussiebb.net [IPv6:2403:5800:5200:4700:225:90ff:fe47:39b4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "dons.net.au", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J9Q832Lf5z4fPC for ; Fri, 10 Dec 2021 09:09:22 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from midget.dons.net.au (localhost [127.0.0.1]) by midget.dons.net.au (8.16.1/8.16.1) with ESMTPS id 1BA98xa6066765 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Fri, 10 Dec 2021 19:39:05 +1030 (ACDT) (envelope-from darius@dons.net.au) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dons.net.au; s=default; t=1639127349; bh=zrKKIEkwirooxdvcyjv8QJV29MQBY9d3emLWWqMBcJk=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=CbQ48ZcxT2mxAG7zgbBW+KowRb8m1l6JHQQgurG4G8KT/iEmucL3dGZB3q0GmbKNN Cir5dtFCng1a+bZVGlErOWCq2SfLdrNOCOLIWen63OpufVyRnBfyxe7HiLi2AWGaYA V7+8nodQVZBfpYAH+Y20bBGfVga8ELD9ImjAyJqA= Received: (from mailnull@localhost) by midget.dons.net.au (8.16.1/8.16.1/Submit) id 1BA98rps066756 for ; Fri, 10 Dec 2021 19:38:53 +1030 (ACDT) (envelope-from darius@dons.net.au) X-MIMEDefang-Relay-f0f0b4ff001831caa5b8ac39868c4c7e9b4d12fc: 2403:5800:5200:4700:792f:b02:6699:af48 Received: from smtpclient.apple (2403-5800-5200-4700-792f-b02-6699-af48.ip6.aussiebb.net [2403:5800:5200:4700:792f:b02:6699:af48]) by 2403-5800-5200-4700-225-90ff-fe47-39b4.ip6.aussiebb.net (envelope-sender ) (MIMEDefang) with ESMTP id 1BA98rlw066749; Fri, 10 Dec 2021 19:38:53 +1030 Content-Type: text/plain; charset=us-ascii List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: What to use in place of abstract unix sockets? In-Reply-To: Date: Fri, 10 Dec 2021 19:38:53 +1030 Cc: Eugene Grosbein , freebsd-hackers Content-Transfer-Encoding: quoted-printable Message-Id: <58874E76-8541-46BF-A197-C984D6A869DF@dons.net.au> References: To: Gleb Popov X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Score: 0.8 () No, score=0.8 required=5.0 tests=KHOP_HELO_FCRDNS, PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_HELO_NONE,T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.4 X-Scanned-By: MIMEDefang 2.83 on 10.0.2.1 X-Rspamd-Queue-Id: 4J9Q832Lf5z4fPC X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: darius@dons.net.au From: Daniel O'Connor via freebsd-hackers X-Original-From: Daniel O'Connor X-ThisMailContainsUnwantedMimeParts: N > On 10 Dec 2021, at 18:23, Gleb Popov wrote: > > What can I do to make this software work for FreeBSD? Simply using = regular > > UDS instead of abstract ones doesn't work for obvious reasons - the > > "client" can't find the socket file. >=20 > If the parent knows where the child will chroot it could create a unix = domain socket under that directory somewhere. >=20 > Same problem as above - there should be a single socket on the erver = side.=20 I just did a quick test with nc and you can hard link unix domain = sockets so you could bind it in the parent then hard link it for each = child. Seems pretty kludgy though :) -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum