From nobody Sat Sep 09 16:58:13 2023 X-Original-To: dev-commits-src-all@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 4RjfLZ0fLMz4s1Nh; Sat, 9 Sep 2023 16:58:14 +0000 (UTC) (envelope-from git@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 4RjfLY4qmmz3Lln; Sat, 9 Sep 2023 16:58:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694278693; 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=Jh7lmdIz512UoLknXbRSJdO7Aw7ehISznAMFAYHrkN8=; b=xP3bX6bEGnlSbQxqzBUFM6sCWmfn1iPn6UBGknAAhbW1lm9F8nZBAYTbFEzQM43WE89T57 rHmwiNTescnwakf2ffsS7UrpJZtv6vXCBhc8AxGijbsOXbWRAen363uYD+LiocEt3OX2+u RCj4THaZRw65fjbJs/YWOZYF1reMJ6ZljRNP0ht91zoc3CIrSn+2ASvV37Y7DZD8IseuXw K50uiT434vtUGPWeHrcqHJFL9vRydXMkS87dyZe0kQojb39DGm/MlVh7Q1NDu+Ccy8EJOJ 95DKNJgVHQ3/mBQ0QCrSZk404PggttwuZxB2K2V3CAUKn0UmfGIc6i5ihrzc4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694278693; a=rsa-sha256; cv=none; b=Nk44WRBD+SP6DYcPJp63YzFcWA0TPKKX7FZ5YxcivhRiE5T9pwS8Spf21rNbdjF0zyKugQ VWF3xcXuiSqevmWd5EWSEQBo2oZNj7TNEBWucvmarHBddn5+RiCBEJluJLhVGuwvkkRvUm wwGtBUaqUewX55R97/P9ZCpHCGPv0fg3GhFbnD3/5rVvNMWD2my1bCEk8kRWOcatkC1sQI 88uj54WwQLHKA53WIKdydzLECmHZPoC+iapGBT+AruOBm1k1J7846DvyZLFR8pg7sWmzEJ zHGsajHR6fTILeIV8LuigHLriNGuHfPnCDcs71vwwqKy63eYDIhbWnIaFxdRkw== 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=1694278693; 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=Jh7lmdIz512UoLknXbRSJdO7Aw7ehISznAMFAYHrkN8=; b=h6DNyD9VscA5IiLi+YVPfnWd9O+SKlPtBrxyUYJLMpNISrmQK/i0EFFLbDHd9teVrPzfnU ZAZqhW7XBs6OG2Wm1g3R2R1ugxGYS8fpt2QnU33RNJaflbw8+GmXpu4aLJz5zZHCh/2XtX xp2X3Fd5QrrU1oqTqdJOW5Uov/7DKB75pSXO90a83yeSQMk/yoSr5PZ1ocLr7cW3OkOR7b V3l1t4JyPkx/O6NErxOk7ULfXvx3xqwAZX5EMwZpemlKRYJE4tDw1eF1RiEPnRdRv22WuO wRKQ561ANXI3oI23yH+pJ4gj+LUpv+sa/md53C+Y7O4YCPDHXy6dsBCpPRrNFQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4RjfLY3nmLzYGY; Sat, 9 Sep 2023 16:58:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 389GwDss000638; Sat, 9 Sep 2023 16:58:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 389GwD8F000636; Sat, 9 Sep 2023 16:58:13 GMT (envelope-from git) Date: Sat, 9 Sep 2023 16:58:13 GMT Message-Id: <202309091658.389GwD8F000636@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Jamie Gritton Subject: git: 402d5960cb82 - stable/14 - MFC jail.conf(5): Fix and expand description of ".include". List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jamie X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 402d5960cb82eaccc33177aac821dbad1b42db1c Auto-Submitted: auto-generated The branch stable/14 has been updated by jamie: URL: https://cgit.FreeBSD.org/src/commit/?id=402d5960cb82eaccc33177aac821dbad1b42db1c commit 402d5960cb82eaccc33177aac821dbad1b42db1c Author: Jamie Gritton AuthorDate: 2023-09-05 20:35:54 +0000 Commit: Jamie Gritton CommitDate: 2023-09-09 16:57:33 +0000 MFC jail.conf(5): Fix and expand description of ".include". Escape a period that caused a line not to be includesd. Also mention that glob(3) patterns may be included, and a consequence of that. PR: 273561 Reported by: crest@rlwinm.de Reviewed by: emaste MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D41723 (cherry picked from commit 165234d5527440b7755b01554ff7633e33c0d285) --- usr.sbin/jail/jail.conf.5 | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/usr.sbin/jail/jail.conf.5 b/usr.sbin/jail/jail.conf.5 index 33a66c85e7ea..0b82a972020c 100644 --- a/usr.sbin/jail/jail.conf.5 +++ b/usr.sbin/jail/jail.conf.5 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd Jun 3, 2023 +.Dd September 5, 2023 .Dt JAIL.CONF 5 .Os .Sh NAME @@ -164,11 +164,22 @@ and .Ss Includes A line of the form .Bd -literal -offset ident -.include "filename"; +\&.include "filename"; .Ed .Pp -will include another file in the configuration. The filename must be -a literal string, and cannot contain variable expansions. +will include another file (or files) in the configuration. +The filename should be either absolute, or relative to the +configuration file's directory. It cannot contain variable +expansions, but may contain +.Xr glob 3 +patterns. +.Pp +The included file must exist, though a filename glob may match zero or +more files. This allows inclusion of any/all files in a directory, +such as +.Dq /etc/jail.conf.d/*.conf , +or conditional inclusion of a single file, such as +.Dq jail.foo[.]conf . .Ss Comments The configuration file may contain comments in the common C, C++, and shell formats: