From owner-freebsd-jail@freebsd.org Wed Apr 15 22:01:40 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 45F4F2C388B for ; Wed, 15 Apr 2020 22:01:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 492bsv5fgbz4V0Z for ; Wed, 15 Apr 2020 22:01:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id C20792C388A; Wed, 15 Apr 2020 22:01:39 +0000 (UTC) Delivered-To: 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 C1CC72C3889 for ; Wed, 15 Apr 2020 22:01:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 492bsv4q9Fz4V0Y for ; Wed, 15 Apr 2020 22:01:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A0C9225E13 for ; Wed, 15 Apr 2020 22:01:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 03FM1df6079077 for ; Wed, 15 Apr 2020 22:01:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 03FM1d8u079076 for jail@FreeBSD.org; Wed, 15 Apr 2020 22:01:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: jail@FreeBSD.org Subject: [Bug 245627] jail rc script stops jails not defined in jail.conf Date: Wed, 15 Apr 2020 22:01:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: joeb1@a1poweruser.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2020 22:01:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245627 joeb1@a1poweruser.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joeb1@a1poweruser.com --- Comment #1 from joeb1@a1poweruser.com --- Jail definition statements can still be placed in rc.conf which is the pre release 6.0 method or in the jail.conf file which is the new way since rele= ase 6.0. The code in rcd/jail needs to be cleaned up removing the processing of= the old rc.conf jail definition method. ezjail uses the rc.conf method and gets= a warning message telling the user to change his jail definition method to use jail.conf. The ezjail maintainer has been told to update ezjail many times = over the past 6 releases of FreeBSD but has not done so. qjail is an updated ver= sion of ezjail that uses jail.conf and only starts/stops/restarts jails under it control. It does not use the default jail.conf file so native jails and oth= er jail tools do not step on qjail jails. When it comes to jails with manual defined definitions in the default jail.= conf file with other jail tools also putting their jail definitions in the defau= lt jail.conf file the rc.conf jail start statement will start all of them at b= oot time by default as designed. Adding the rc.conf jail names statement contai= ning the jail names to use is only way to control which jails are started at boot time by default.=20 It is the users responsibility that native jail and jail tools that use the default jail.conf file DO NOT exist on the same host at the same time becau= se of the possibility of them stepping on each other during host boot or stop/restart time.=20 To summarize: This is not a bug or short coming in rcd/jail. But a design f= law in some jail tools making them incapable of playing nice with native jails defined in the default jail.conf file. This bug report should be closed bec= ause it's not a bug. --=20 You are receiving this mail because: You are the assignee for the bug.=