Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Dec 2020 15:58:01 -0600
From:      Kyle Evans <kevans@freebsd.org>
To:        James Gritton <jamie@gritton.org>
Cc:        freebsd-jail <freebsd-jail@freebsd.org>
Subject:   Re: Questions about the output of jls
Message-ID:  <CACNAnaG1iRLuVy6xW-7C3zZsm%2BoB=2poVm%2BbkoAad%2BwhrfMnng@mail.gmail.com>
In-Reply-To: <466a825c7a7a1cdbcec72b82f978ad08@gritton.org>
References:  <trinity-1eddb95f-d7d8-4b02-be03-0296774a8434-1607875466295@3c-app-gmx-bap80> <CACNAnaHjBmr2F2%2BaZHOH3UsgOE0FL%2BSknUV7-a825NBRJJ%2BAHw@mail.gmail.com> <466a825c7a7a1cdbcec72b82f978ad08@gritton.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 15, 2020 at 2:06 PM James Gritton <jamie@gritton.org> wrote:
>
> On 2020-12-13 08:16, Kyle Evans wrote:
> >
> > It looks like it's exporting a jailsys int for vnet, so these
> > correspond to:
> >
> > JAIL_SYS_DISABLE=0
> > JAIL_SYS_NEW=1
> > JAIL_SYS_INHERIT=2
> >
> > So 2 is 'use parent vnet', 1 is 'new one created' -- I don't see this
> > described in either jls(1) or jail(8), it'd probably be nice if we
> > translated jailsys ints into "new"/"inherit" since one specifies
> > "new"/"inherit" for them during creation.
>
> Turns out this is a legit bug - I had a "=" where I needed a "|=".  That
> one-character fix will turn "vnet=2" into "vnet=inherit" for "jail -n
> vnet", same as it already is for "jail -n" without explicit parameters.
>

Aha! This is both unexpected and amusing. Thanks for the fix. =)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaG1iRLuVy6xW-7C3zZsm%2BoB=2poVm%2BbkoAad%2BwhrfMnng>