From nobody Thu Aug 6 22:31:28 2026 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 4hGMT21Rjcz6nLRj for ; Thu, 06 Aug 2026 22:31:34 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hGMT13RPFz4P4V for ; Thu, 06 Aug 2026 22:31:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786055493; 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=3MKex9GgQXGay0HfwI7Gqxgx+Ji52pNgDQuaMV+oJMo=; b=hSVBLJvNZtC4GLd3I20n8VFKGGzwjj+AaDLK6r8cAn9IjRzwOHZc/7G6luzROrVuU5Peiv sNcfGJS1Yt42k0k5dHKzqS0j3mtz+Z6It8Mint9JvELH9RZQZCCGwXuN6SXXT9dyKCB5RR 5FQJfUiW0ANVADQEQWYNI3UlDeLfEv8Vh8a0IwmVApPwZ7feh136847s1g5rO7vZt0lgzx ZkcTGneeY0coNwt9zlp4XbFwpmtxvUU2gM6jpFYzqwFmaWV/p4A0iLn2Ftny5vmtGE0znI ubGP5uA0kXURtF/ZOydWpQJ8I67PcZOQ+2plLzdapb6PynK+LXVgvHFUdeb/xA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786055493; a=rsa-sha256; cv=none; b=Mefk7dPvkQM8Ho/UwXaQRsvR+2lOgh1H20NUdjT87vzVF1c8TOlglcuwkAjHk+dbZvU8Ej MEJ4W54XWAHX1dLp/J3rEAePqeXKgmdLOKTVErDxyVPSjNcXAv4rFEfh+P2klUYLO7mbyi HIpdOLGj1rQmx1ucdNYdMyvdHpwBzX0fV76nQzkgAbuBOBMEwt2iChOTuv4CJ9ZTIIq5Y/ AFPybELucc9pcbIsD1swxxN+5mOKECGzJcczfaXUSqVRmmUV+k464nqJRKnSDxT1ObKYNj GRpLFDh1MmKacoZ4WrC9tGFCGnpfWX557pD4D5imqYCkMpVw5ohf5WornaWXcQ== 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=1786055493; 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=3MKex9GgQXGay0HfwI7Gqxgx+Ji52pNgDQuaMV+oJMo=; b=Bg9Hd10IIffp+0VH+6ZgDC+FmfFBC8+7FeW3VllCPJ+p3Ggl+o+HsPsqH0Rkju4ULogpHa H/oaI9vTQthhscgb1jRCb6g3sh/E1kWV8SS9s5gAXowkie2n+oFc2+WeopbdFooHsj3PWi epVZD/pglV1cAJTzrCghqiKKR+lvUx5pU8I1Ubu1ygJ3q7l9RmEyCQgIwMIIoVKy60Mioq f7u4m9wolrkurFIewT2jZkfo2wRLhtayFfnkPSw5f1M8aLeroPh2tSq/dBZX3CGRmlc9eP MbgyfDXNJHfBdlT8b/E5+k7aLokd9yEicNByfMaMsQdcLxkVYeEChD+dUXHQNQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hGMT11Gvwzgxy for ; Thu, 06 Aug 2026 22:31:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1f939 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 06 Aug 2026 22:31:28 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: cf16565eb929 - stable/14 - jail.8: Add creating a jail from distribution set 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: cf16565eb92924e213fae3fa393ef8b7cb1c3dd7 Auto-Submitted: auto-generated Date: Thu, 06 Aug 2026 22:31:28 +0000 Message-Id: <6a750b40.1f939.5ef5ff4f@gitrepo.freebsd.org> The branch stable/14 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=cf16565eb92924e213fae3fa393ef8b7cb1c3dd7 commit cf16565eb92924e213fae3fa393ef8b7cb1c3dd7 Author: Alexander Ziaee AuthorDate: 2025-11-07 18:38:54 +0000 Commit: Alexander Ziaee CommitDate: 2026-08-06 22:15:03 +0000 jail.8: Add creating a jail from distribution set PR: 200803 MFC after: 3 days Reviewed by: jamie Differential Revision: https://reviews.freebsd.org/D53631 (cherry picked from commit d59903481dbaef9ef7e91ea4945d2355ae17c53a) --- usr.sbin/jail/jail.8 | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/usr.sbin/jail/jail.8 b/usr.sbin/jail/jail.8 index 6d3b071496bf..4c7db4d9dd4f 100644 --- a/usr.sbin/jail/jail.8 +++ b/usr.sbin/jail/jail.8 @@ -1,3 +1,6 @@ +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" .\" Copyright (c) 2000, 2003 Robert N. M. Watson .\" Copyright (c) 2008-2012 James Gritton .\" All rights reserved. @@ -23,7 +26,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd August 7, 2025 +.Dd November 6, 2025 .Dt JAIL 8 .Os .Sh NAME @@ -1062,7 +1065,7 @@ process. This manual page documents the configuration steps necessary to support either of these steps, although the configuration steps may need to be refined based on local requirements. -.Ss "Setting up a Jail Directory Tree" +.Ss Setting up a Jail Directory Tree From Source To set up a jail directory tree containing an entire .Fx distribution, the following @@ -1075,8 +1078,19 @@ mkdir -p $D make world DESTDIR=$D make distribution DESTDIR=$D .Ed +.Ss Setting up a Jail Directory Tree from Distribution Files +To set up a jail directory tree containing an entire +.Fx +distribution, the following +.Xr sh 1 +command script can be used: +.Bd -literal -offset indent +D=/here/is/the/jail +mkdir -p $D +tar -xf /usr/freebsd-dist/base.txz -C $D --unlink +.Ed .Pp -In many cases this example would put far more in the jail than needed. +In many cases these examples would put far more in the jail than needed. In the other extreme case a jail might contain only one file: the executable to be run in the jail. .Pp