From nobody Sat Dec 11 09:59:15 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 32DA718CE881 for ; Sat, 11 Dec 2021 09:59:51 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JB3Cn6GK4z4T4g for ; Sat, 11 Dec 2021 09:59:49 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lj1-f180.google.com with SMTP id k23so17057920lje.1 for ; Sat, 11 Dec 2021 01:59:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qPOtUlHxUb4O85bfqD1YotGDA5db4r7/Y295E2LfcbU=; b=wit+ErGJpMgiHyHf5dmSFROpI2Eb6ACB4g6XDelZPj4fQ/l+8FjETq0UtXHyOUKpfa FcEMa99lzBNQF6i6kfgYqUoaJ6QgHe2ZXtWi8imqIDAaUc4cxZ3CQlgiNkZ52toXadJF J9W9fB0dX68Em/9Op+Eukn08vQGGWp1qB4rIDh++cNJt2+xmS+f3GaAl5VzJpgYOhbja rZj8olFIcI113PtOJnZ+XH/tb5fFAz04N9wPFodRl2YAlxJG6ir2qbxH1Me/kWBO18GZ ZEKl4XOaK0ijzAX4kOhl9tLhdpuplg1wD+TGX1yBTwHnkOMMZdSgSzSWqeDVrv5iLf/h ctbw== X-Gm-Message-State: AOAM531IuSZt8pYJ5yJNUOpNeobEV43oEds6qKMzea6Ulw4zkODkazO/ 5z9i4upYc8sQ8BiRkfuxNgBcPrLLGE4QXA== X-Google-Smtp-Source: ABdhPJx2kfzBTIRBLwVqlpKvKiSxWyL/a1aTiFzvzq7lwwtfBF+ZnrSNjCGiJ5pMIhLnzPYlplEgEQ== X-Received: by 2002:a2e:5c04:: with SMTP id q4mr18108391ljb.334.1639216781837; Sat, 11 Dec 2021 01:59:41 -0800 (PST) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com. [209.85.167.51]) by smtp.gmail.com with ESMTPSA id c25sm560412lja.38.2021.12.11.01.59.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Dec 2021 01:59:41 -0800 (PST) Received: by mail-lf1-f51.google.com with SMTP id bu18so22406697lfb.0 for ; Sat, 11 Dec 2021 01:59:41 -0800 (PST) X-Received: by 2002:a05:6512:ba8:: with SMTP id b40mr17737514lfv.114.1639216781341; Sat, 11 Dec 2021 01:59:41 -0800 (PST) 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 References: <58874E76-8541-46BF-A197-C984D6A869DF@dons.net.au> In-Reply-To: <58874E76-8541-46BF-A197-C984D6A869DF@dons.net.au> From: Gleb Popov Date: Sat, 11 Dec 2021 12:59:15 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: What to use in place of abstract unix sockets? To: "Daniel O'Connor" Cc: freebsd-hackers Content-Type: multipart/alternative; boundary="000000000000f637db05d2dbe5c0" X-Rspamd-Queue-Id: 4JB3Cn6GK4z4T4g X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.208.180 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-1.79 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; NEURAL_HAM_LONG(-0.79)[-0.789]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; ARC_NA(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.180:from,209.85.167.51:received]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.180:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com] X-ThisMailContainsUnwantedMimeParts: Y --000000000000f637db05d2dbe5c0 Content-Type: text/plain; charset="UTF-8" On Fri, Dec 10, 2021 at 12:09 PM Daniel O'Connor wrote: > > > > 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. > > > > If the parent knows where the child will chroot it could create a unix > domain socket under that directory somewhere. > > > > Same problem as above - there should be a single socket on the erver > side. > > 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 :) > This is actually a nice suggestion, as it is simple to try out. However, it doesn't work, the link() call fails with EXDEV: Cross-device link This might be because the chroot's target directory is an nullfs mount. Am I right that it isn't possible to create hard links that span nullfs mount points? --000000000000f637db05d2dbe5c0--