From owner-freebsd-jail@FreeBSD.ORG Sun Jan 27 16:44:12 2013 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 15CAF3C6; Sun, 27 Jan 2013 16:44:12 +0000 (UTC) (envelope-from rpoyner@engr.wisc.edu) Received: from smtp-out.cae.wisc.edu (smtp-out.cae.wisc.edu [IPv6:2607:f388:1082:0:33a0:4b4f:ab8b:5979]) by mx1.freebsd.org (Postfix) with ESMTP id C8165A84; Sun, 27 Jan 2013 16:44:11 +0000 (UTC) Received: from smtp.cae.wisc.edu (smtp.cae.wisc.edu [IPv6:2607:f388:1082:0:ac8d:e958:beb5:d993]) by smtp-out.cae.wisc.edu (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0RGi9oc026925 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 27 Jan 2013 10:44:10 -0600 Received: from dyn-63-84.engr.wisc.edu (dyn-63-84.engr.wisc.edu [10.128.63.84]) (authenticated bits=0) by smtp.cae.wisc.edu (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0RGi6G0023149 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Sun, 27 Jan 2013 10:44:06 -0600 X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.97.5 at smtp.cae.wisc.edu Subject: Re: ezjail and allow.mount.zfs on 9.1 Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Russell Poyner In-Reply-To: <5103028A.5050503@FreeBSD.org> Date: Sun, 27 Jan 2013 10:44:05 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5102DEBC.50604@engr.wisc.edu> <5103028A.5050503@FreeBSD.org> To: Jase Thew X-Mailer: Apple Mail (2.1085) Cc: freebsd-jail@freebsd.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 16:44:12 -0000 On Jan 25, 2013, at 4:09 PM, Jase Thew wrote: > On 25/01/2013 19:36, Russell Poyner wrote: >> An earlier thread discussed the issues involved with allowing jails = to >> mount zfs filesystems. >>=20 >> here: >> = http://freebsd.1045724.n5.nabble.com/9-1-PRERELEASE-allow-mount-allow-moun= t-zfs-do-not-get-passed-to-child-td5740553.html#a5742453 >>=20 >>=20 >> I can get it to work if I do: >> jail -m jid=3D12 allow.mount.zfs >>=20 >> on the running jail, but I'm at a loss to figure out how to make the >> setting survive a restart of the jail. >>=20 >> Is there a way to get ezjail to honor the new /etc/jail.conf file? >>=20 >> Or could someone post an example of how to set this using the >> /usr/local/etc/ezjail/JAILNAME >> file? >>=20 >> Thanks >> Russ Poyner >=20 > Hi Russ, >=20 > Since the introduction of jail__parameters support in > /etc/rc.d/jail, you can add a line to your > /usr/local/etc/ezjail/ config file to pass jail start-time > parameters. >=20 > eg. export jail__parameters=3D"allow.mount=3D1 = allow.raw_sockets=3D1 > etc." >=20 > Regards, >=20 > Jase. >=20 >=20 > --=20 > Jase Thew > jase@FreeBSD.org > FreeBSD Ports Committer I still seem to be missing something. I've tried a number of variations on export jail_smb_paramters=3D"allow.mount=3D1 allow.mount.zfs=3D1" in /usr/local/etc/ezjail/smb but see no change in the output of sysctl = inside the jail after stopping and restarting it. I'm running ezjail 3.2.3 and freeBSD 9 STABLE. Perhaps I am missing Drew's patch to the jail rc script? Thanks again Russ Poyner