From nobody Thu Dec 01 09:29:25 2022 X-Original-To: freebsd-current@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 4NN9lT4WzSz4jtKM for ; Thu, 1 Dec 2022 09:29:57 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (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-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NN9lS5HGzz4M22 for ; Thu, 1 Dec 2022 09:29:56 +0000 (UTC) (envelope-from Alexander@leidinger.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=leidinger.net header.s=outgoing-alex header.b=kxPmbCzk; spf=pass (mx1.freebsd.org: domain of Alexander@leidinger.net designates 89.238.82.207 as permitted sender) smtp.mailfrom=Alexander@leidinger.net; dmarc=pass (policy=quarantine) header.from=leidinger.net Received: from outgoing.leidinger.net (p508d4cfc.dip0.t-ipconnect.de [80.141.76.252]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) client-signature ECDSA (P-256)) (Client CN "outgoing.leidinger.net", Issuer "R3" (verified OK)) by mailgate.Leidinger.net (Postfix) with ESMTPSA id A0F3C1FB5 for ; Thu, 1 Dec 2022 10:29:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1669886984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=o9a0pGEVYOXKLCJ+dJyh6S+5EJV1tnmb1lTdowvLqL0=; b=kxPmbCzkPa09u/8dv+ADfPXNhSPdpjDSxQMjX7rRypyOa5GEfFz5ir+lrkkYxySOmoRB/5 klTVAifJ/t2QGuQHF3oQH9DRAQTvEPqcdZUqbD/I+62RV31DTrDXXwqHj62igwS5bogofh QZnAK10l3sWjo4oiHqvTLuDfnWJl6cg6VsvqrOkO9m3xuOv2dAFxTD0NkPzMmVuqSzow61 rvZLmAl0IbqSdOibfx/PVCFczB269hKG2zfAYTLjrv9OdFgvGhBfJ38gqvpQKe8eEWtOkU BujtKp8Yb4AXfjGmmB8v3/h0x8A+LrssCHvSE3TzxBVSvc4u9t/fVTXoRj3YXg== Received: from webmail.leidinger.net (localhost [127.0.0.1]) by outgoing.leidinger.net (Postfix) with ESMTP id 9B0A4648C for ; Thu, 1 Dec 2022 10:29:26 +0100 (CET) Received: from www (uid 80) (envelope-from Alexander@leidinger.net) id 62686 by webmail.leidinger.net (DragonFly Mail Agent v0.13+ on webmail.leidinger.net); Thu, 01 Dec 2022 10:29:25 +0100 Date: Thu, 01 Dec 2022 10:29:25 +0100 Message-ID: <20221201102925.Horde.uAC-87YyIRDDnqJTmvsFwNm@webmail.leidinger.net> From: Alexander Leidinger To: Alan Somers Cc: Rick Macklem , Peter Eriksson , FreeBSD CURRENT , "Bjoern A. Zeeb" Subject: Re: RFC: nfsd in a vnet jail References: <82103A1E-9D39-47B0-9520-205583C8B680@lysator.liu.se> In-Reply-To: Accept-Language: de,en Content-Type: multipart/signed; boundary="=_8zfjp1O9e-Bcwxy_G1BIpfD"; protocol="application/pgp-signature"; micalg=pgp-sha256 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 X-Spamd-Result: default: False [-4.60 / 15.00]; SIGNED_PGP(-2.00)[]; SUSPICIOUS_RECIPS(1.50)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TAGGED_RCPT(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,lysator.liu.se,freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; RCPT_COUNT_FIVE(0.00)[5]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE]; TO_DN_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[leidinger.net:+]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4NN9lS5HGzz4M22 X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N This message is in MIME format and has been PGP signed. --=_8zfjp1O9e-Bcwxy_G1BIpfD Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Alan Somers (from Tue, 29 Nov 2022=20=20 17:28:10=20-0700): > On Tue, Nov 29, 2022 at 5:21 PM Rick Macklem wro= te: >> So, what do others think of enforcing the requirement that each jail >> have its own file systems for this? > > I think that's a totally reasonable requirement. Especially so for > ZFS users, who already create a filesystem per jail for other reasons. While I agree that it is a reasonable requirement, just a note that we=20= =20 can=20not assume that every existing jail resides on its own file=20=20 system.=20The base system jail infrastructure doesn't check this, and=20=20 the=20ezjail port doesn't either. The iocage port does it. Is there a way to detect this inside a jail and error out in nfsd/mountd? Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_8zfjp1O9e-Bcwxy_G1BIpfD Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIzBAABCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmOIc/QACgkQEg2wmwP4 2IYQnA/5Ab+S8XIx+I74YC57YsrTU6knAzoblmXm7IhLYqBM6Hw4+CHPS4b3X/2I tNkddQpd8vXBofiydmNxa96VGibzfY8NvkgCJ5zLAJKxmST+llSd/BiIdsWC7FbP jpv34aqNXyzv5WNJyoWWkuXYKXx7OzS9T+bZhXPmaLYAkEM4fVKSJDbNqsQN9/4x bDjCSBjaHdeyfXsmxH5HgOdstK+bCp3W+HGirsCfLRryFfZmmnOtXFpSJYk907Pv z0NlKDMg7P/vATlM4vyvmauNMSZCE7KYER5Mj4Q7PYX/m6RnesOU497mK32nnhSk XE9IwopgWy6TAdkI+Nu9sdJowQnsjyWWIcD4fKJYEwLARhi0DOcn1oW2p8Bs+Z96 vSKwRKQV39oiYVumQMvXL7xaaMUPFfh80pT/dEHb0be4c9p7SSFxFmrbdBjjKtNX +kJhjZQL+YOaEmLbH2zv/fS7MZVNNmTOR8pyOCBa0WvvLl5zbDm5o506ypzcVN5j M+zncNsrArR8jLIT4asUywr4v6xKo0ZNSwr9Bcvpxa+38TgMM4jZpdxfqKnsDUbq evyvrve7Sttouawb5VaOGEY8pzNfxERabhZUV8njco9Lu/X16CL3crnpWr76JlSf hZCFXAlbo3C9ilV49kTdMy3Ok1ValyIAtPrGY/OBJf/7XS+yIJA= =E6Uc -----END PGP SIGNATURE----- --=_8zfjp1O9e-Bcwxy_G1BIpfD--