From owner-freebsd-current@freebsd.org Wed Aug 28 11:57:36 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E4279DA25C for ; Wed, 28 Aug 2019 11:57:36 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46JPPW6jLjz46v8 for ; Wed, 28 Aug 2019 11:57:35 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from outgoing.leidinger.net (p5B1657F2.dip0.t-ipconnect.de [91.22.87.242]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by mailgate.Leidinger.net (Postfix) with ESMTPSA id C9389150F for ; Wed, 28 Aug 2019 13:57:32 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [IPv6:fd73:10c7:2053:1::3:102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id 632DF936E for ; Wed, 28 Aug 2019 13:57:00 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.15.2/8.14.4/Submit) id x7SBv0ca034798 for freebsd-current@freebsd.org; Wed, 28 Aug 2019 13:57:00 +0200 (CEST) (envelope-from Alexander@leidinger.net) X-Authentication-Warning: webmail.leidinger.net: www set sender to Alexander@leidinger.net using -f Received: from [::ffff:31.3.144.27] ([::ffff:31.3.144.27]) by webmail.leidinger.net (Horde Framework) with HTTPS; Wed, 28 Aug 2019 13:57:00 +0200 Date: Wed, 28 Aug 2019 13:57:00 +0200 Message-ID: <20190828135700.Horde.m2EjpS9j67KYn2E1oSeoK8f@webmail.leidinger.net> From: Alexander Leidinger To: freebsd-current@freebsd.org Subject: Re: jails, ZFS, deprecated jail variables and poudriere problems In-Reply-To: <20190827101149.1efcb946@freyja> User-Agent: Horde Application Framework 5 Accept-Language: de,en Content-Type: multipart/signed; boundary="=_QZT_6MVfrwyvmp3gtxgr8v5"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1566993453; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=1HsJbDioi6L7i8XNhnTtDer+7jqjZHL2zac8QDVFUK4=; b=shS9srFCjY3ZxEGFxIIgYyQs2ggavCt1OywMqIibUi8L52EGHq+5yxTaqN67jyBvgAaWaj BEVVoOy8cXknDpPaSSblMwKqxyR8cy6lYh34uPHImeJRZprypbOHoM0UtDRyvDJpvY28ta oUKLd7NANyjkXF7e+W2h0P8NKZO/Jld0wfqjrCWltyiedhJ4Cy28uTHXOe8UZQEY+Fd3UY VAKzRuW9T9Vit9Vuke05iHVYxcNtkf7wux08SrpFvl9yfThBQN1YnwJCC4VlUYWpGn+etg QjDMB1WUYvEtZkDwKy69M6WJ7mo2ERwvhwDBAusxVP9Y//xs4+ERKBrt+BP06Q== ARC-Seal: i=1; s=outgoing-alex; d=leidinger.net; t=1566993453; a=rsa-sha256; cv=none; b=20MhANUHzzCjJGWaWGvxMy8P0DpmJ3XDisObYJVP3TYB+pO6HnwTrIzlvz2sLALzy0StBJ qg2YCExa8qBkCsN8T05Wp1cE7ua+3kgAd/YEaPx57p6nR/fdB3nMvL37SSYuxpPHxuuKNX zCDG7n1jAY3Yp2QLfoI7pBKzR3pT5o72wxIrBNxAKsJuXAn+3mr5CdHnMW7oCBYkb8KzxK ivNxTZoT4maFjLI2n68Z4YY5oeicLl6mNyJWeclqwWDroWklWhXyEnDhLI1aJlS50hQ+Pq JDpO/v7upWCkHllAM2QMY2GEO6is+E8BEldeyWB/oi1qS7pcpYO36qWi0C33Hw== ARC-Authentication-Results: i=1; mailgate.Leidinger.net; auth=pass smtp.auth=netchild@leidinger.net smtp.mailfrom=Alexander@leidinger.net X-Rspamd-Queue-Id: 46JPPW6jLjz46v8 X-Spamd-Bar: --------- X-Spamd-Result: default: False [-9.76 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; XAW_SERVICE_ACCT(1.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[leidinger.net:+]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; RCVD_COUNT_THREE(0.00)[4]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.993,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-3.66)[ip: (-9.62), ipnet: 89.238.64.0/18(-4.81), asn: 34240(-3.89), country: DE(-0.01)]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE]; ARC_ALLOW(-1.00)[i=1]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[242.87.22.91.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Aug 2019 11:57:36 -0000 This message is in MIME format and has been PGP signed. --=_QZT_6MVfrwyvmp3gtxgr8v5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting "O. Hartmann" (from Tue, 27 Aug 2019=20=20 10:11:54=20+0200): > We have a single ZFS pool (raidz), call it pool00 and this pool00 conatin= s a > ZFS dataset pool00/poudriere which we want to exclusively attach to a jai= l. > pool00/poudriere contains a complete clone of a former, now decomissioned > machine and is usable by the host bearing the jails. The jail, named=20= =20 >=20poudriere, > has these config parameters set in /etc/jail.conf as recommended: > > enforce_statfs=3D "0"; > > allow.raw_sockets=3D "1"; > > allow.mount=3D "1"; > allow.mount.zfs=3D "1"; The line above is what is needed, and what is replacing the sysctl=20=20 you've=20found. > allow.mount.devfs=3D "1"; > allow.mount.fdescfs=3D "1"; > allow.mount.procfs=3D "1"; > allow.mount.nullfs=3D "1"; > allow.mount.fusefs=3D "1"; > > Here I find the first confusing observation. I can't interact with=20=20 >=20the dataset > and its content within the jail. I've set the "jailed" property of > pool00/poudriere via "zfs set jailed=3Don pool00/poudriere" and I also ha= ve to > attach the jailed dataset manually via "zfs jail poudriere=20=20 >=20pool00/poudriere" to > the (running) jail. But within the jail, listing ZFS's mountpoints reveal= : > > NAME USED AVAIL REFER MOUNTPOINT > pool00 124G 8.62T 34.9K /pool00 > pool00/poudriere 34.9K 8.62T 34.9K /pool/poudriere > > but nothing below /pool/poudriere is visible to the jail. Being confused = I Please be more verbose what you mean by "interact" and "is visible". Do zfs commands on the dataset work? Note, I don't remember if you can manage the root of the jail, but at=20=20 least=20subsequent jails should be possible to manage. I don't have a=20=20 jail=20where the root is managed in the jail, just additional ones.=20=20 Those=20need to have set a mountpoint after the initial jailing and then=20= =20 maybe=20even be mounted for the first time. Please also check /etc/defaults/devfs.rules if the jail rule contains=20=20 an=20unhide entry for zfs. Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_QZT_6MVfrwyvmp3gtxgr8v5 Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJdZmwMAAoJEBINsJsD+NiGKfUP/AwQiECsn5Os00z6O4rs2w6O iU2o9NbgP6TLKgoTnPy/vTv4TwnzLBgMJCmX88ddQBRdoANaBASztfro1QpNzUim Jpi1fNmmJW+LznskWYDWnEuPXVPUy645RgVUuTNTFOWcAh4438TgjJ0tc2IN2h+a eq1GnfRPRnof4PLDdpbOS/IdjP/ujZj5yawK03fG3I36usWooIIRPWUbBFlpVh4R Y6Yb4rZIWS6SAnbfzVFUQLx3TnglmnD84+NwkyDhDSObQwP/nPMwKByCE5QB/DhK mz2l0mEYuGV/cPfgMA0QqSL5R+IKgtA/BQ4JvUzrwjQ6nSFpqZQlGE8v3cryajd7 YKcAp099qtHn9vHvhLfgMVLqt97ktaq9PPpMRt364Ir9UtzO1FuH8pnLhirJklgu EAlrmGjd4RaYR1XFGcY6eIbNvnZm45nyMoZty3urqI11BTNeZ8Qqsn7RVbk+KQzq inCgt0pWgkVgMXloXYzZ70pqgZEawT7Q4mNf1CXB+1DnQUhbFbu890CVtzM9HNmo RwgpzB0jnq3LuqnRySv9xFD3odSJV+7N5qJm1gzyYuFOhKJMXbmtlMexfGN6qSuG eLPkujWza4q1kHxbMIaeiBjtATolNTyj3MHHcIxJ7a8VFoCBVVWYiBz+JMdLNgEJ 9L0wnDXIVSqB7hy1UJ/y =6y94 -----END PGP SIGNATURE----- --=_QZT_6MVfrwyvmp3gtxgr8v5--