From nobody Wed Oct 18 17:14:27 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S9csJ1GSZz4xHS2 for ; Wed, 18 Oct 2023 17:14:28 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S9csH6tqmz4R7d for ; Wed, 18 Oct 2023 17:14:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697649268; a=rsa-sha256; cv=none; b=SRWmHe49or8Tn9q+mN3MDsxqTMYPRz6Zt/W1VxtdeOFVTKyt6G1lRZImsPJeq+u7LDzZxm mDXNajyZEBqPrGJhONkI1WZ/efjz0ABAQnVFE9d7MC7XqNJCn6izUQ1eV5MbR6sR069sW9 Iz/CpGQ5gNiN4JwTcVSX7z3/wuI/cbR8bWyPpaeFleCBEi4UiaD1z4zgw9Tmurp8CD9B/E ccpCmHlL+0yXI/dO85P4CoK8E1JjhLs0LiUz4G31u+AnlCB08a8kmmSwAPkh38k85ske/9 cKIipzPBq9eRMiX6TLcWdfh95PtOOmm4AGXFIembm6uIc19cNZNRAiamlN3DhQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697649268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a8PDv5s5fyGhfOMaexj8CnoBySdRqH8436tmZixTTjg=; b=jbD1Z1LBS26V3P4944NjsIHePEra5HGlEjwpZoPnsNK6DsiAklLmdWHLr1iUXM8zi5o/xt uN1CDuWeYmpTAB6ZhSJYbJjeqfhUnzNmwn6E52Ug/a0bDehZHJHCr+X41BOBLyhNlHlvom NpdT4C2FtIJwrF/eaba/K3uDY2A3q0/Ti1aY7fQgfLiXfjGgTcQIhRJWxr+hZ0HFJqvsQX o6AdWFieuuXHkCPEaNXTYBl0EGTZGQxH7AJHT4k4M07zJj2fd0MB80PPjX3GL22qwYNKJv qsFTbbJqv0CppoT8x3F26igyCNp0a+lf7c535byMS+cCMEd3nlcVInapcpTyAg== 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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S9csH5yCpzvH for ; Wed, 18 Oct 2023 17:14:27 +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 39IHERET087697 for ; Wed, 18 Oct 2023 17:14:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39IHERng087695 for bugs@FreeBSD.org; Wed, 18 Oct 2023 17:14:27 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: bugs@FreeBSD.org Subject: [Bug 274568] rc.conf(5): Empty "jail_list" does not start jails defined in "/etc/jail.conf.d" Date: Wed, 18 Oct 2023 17:14:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: stephen.j.fox.jr@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274568 Bug ID: 274568 Summary: rc.conf(5): Empty "jail_list" does not start jails defined in "/etc/jail.conf.d" Product: Base System Version: 13.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: stephen.j.fox.jr@gmail.com According to the manual page for rc.conf(5), an empty "jail_list" variable should result in all jails being started on boot or with "service jail star= t": jail_list (str) A space-delimited list of jail names. When left empty, all of the jail(8) instances defined in the configuration file are started. The names specified in this list cont= rol the jail startup order. jail(8) instances missing from jail_list must be started manually. Note that a jail's depend parameter in the configuration file may override = this list. In FreeBSD 13.2-RELEASE, "service jail start" with an empty jail_list resul= ts in the following error message with an exit status of 0: "/etc/jail.conf: No such file or directory" The following shell output demonstrates this issue: ``` # uname -a FreeBSD freebsd-sketch 13.2-RELEASE-p3 FreeBSD 13.2-RELEASE-p3 GENERIC amd64 # file /etc/jail.conf.d/foo.conf=20 /etc/jail.conf.d/foo.conf: ASCII text # grep '^jail_list' /etc/rc.conf jail_list=3D"" root@freebsd-sketch:~ # service jail start Starting jails:jail: /etc/jail.conf: No such file or directory . # echo $? 0 # jls JID IP Address Hostname Path # # Edit rc.conf to manually specify the "foo" jail. # grep '^jail_list' /etc/rc.conf jail_list=3D"foo" # service jail start Starting jails: foo. # jls JID IP Address Hostname Path 3 foo. /zroot/jails/foo ``` --=20 You are receiving this mail because: You are the assignee for the bug.=