From owner-freebsd-jail@freebsd.org Tue Dec 15 21:58:16 2020 Return-Path: Delivered-To: freebsd-jail@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 254CA4C54F5 for ; Tue, 15 Dec 2020 21:58:16 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CwXFN0NdQz3GQt for ; Tue, 15 Dec 2020 21:58:16 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id EF8D41609 for ; Tue, 15 Dec 2020 21:58:15 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qv1-f45.google.com with SMTP id a13so10364332qvv.0 for ; Tue, 15 Dec 2020 13:58:15 -0800 (PST) X-Gm-Message-State: AOAM533TVxVroW+UrTCHh8EthRKL4nEPSwU7p/5qeYmTogXEUiPG06qF dKz8E4KqNwR92ta6OyscViybJAMzoqwAPHEEUr8= X-Google-Smtp-Source: ABdhPJw3JBpwOknkvqC2I9vFTfr239PHopsMecofrbT0k5eWoymZUY5lFYII+DqtWz6uMU3eTSXHV3QrxdsePp6E0w0= X-Received: by 2002:a05:6214:6af:: with SMTP id s15mr38128730qvz.34.1608069495623; Tue, 15 Dec 2020 13:58:15 -0800 (PST) MIME-Version: 1.0 References: <466a825c7a7a1cdbcec72b82f978ad08@gritton.org> In-Reply-To: <466a825c7a7a1cdbcec72b82f978ad08@gritton.org> From: Kyle Evans Date: Tue, 15 Dec 2020 15:58:01 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Questions about the output of jls To: James Gritton Cc: freebsd-jail Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2020 21:58:16 -0000 On Tue, Dec 15, 2020 at 2:06 PM James Gritton 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. =)