[PATCH] updated /etc/rc.d/jail and added ZFS support

Jamie Gritton jamie at FreeBSD.org
Thu Jul 28 16:25:32 UTC 2011


Since I missed the 9.0 boat with jail config file capability, something
like this seems necessary; rc.d/jail has long been unable to handle the
full scale of what jail(8) can do.

I gather that setting persist is necessary for the ZFS operation. As
long as we're making the parameter setting more generic from rc, we
should handle the case where persist is specified in ${_params}, and not
always set/reset it around the jail creation unless ZFS is used.

Also, why the specific inclusion of the security-related parameters?
They could just be folded into ${_params}, and if left unspecified then
jail(8) should by default do the right thing.

- Jamie


On 07/28/11 08:11, Martin Matuska wrote:
> The attached patch allows better fine-tuning of jails started via
> /etc/rc.d, uses the new jail(8) flags (-c -m), the persist parameter and
> adds ZFS support.
> Patch is fully backward compatible.
>
> Please review, comment and/or test my attached patch.
>
> Cheers,
> mm


More information about the freebsd-current mailing list