From nobody Tue Sep 01 09:02:24 2026 X-Original-To: dev-commits-src-branches@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 4hZ0HP0MS3z6qV4n for ; Tue, 01 Sep 2026 09:02:25 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hZ0HN6CXfz3CQr for ; Tue, 01 Sep 2026 09:02:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788253344; 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=T0I+2CvzzO3aBkSFySnX2eMVwegAHUfYdgsGtFa1u0U=; b=IJ6kYzIBE4us8Puths5S3dtpN5MCGkqnvCs/DvCy/EDFw0lH92nmF7W6ZCfKDoFRAcaaL2 T/1UwrDDEguzKh0EOUejy6Slw5bokIRK+dxgTjSMuaP5AQn+hhWoxvEdzHmjWF58uhxHwL y37JxeQukZ86FGuEcISOAs/j+KiJU+osoKPzZNNTMptxoLk8Yl0pXSb6nbP5/mW4xkiVsI UH3YMYzE2gGZHO4nhuGmxuY5spX+bZB76UjSjmRfsy3Ba4w5UwdnmIoTGVURufHkiYegnK wE0OXeeoXZOx9/b4CiTof1NocREZQcyTNRdPKT7I2TsqyJKdFdLPle/Vc3x4iA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1788253344; a=rsa-sha256; cv=none; b=BghI82FK9vNah3HhjdSPjPlbPvkKG64HQLUkiVJMSYbahyZ3+gSwo3no6BA4fegaHgkedV UOIJxc1bXV0JhC+s6LYoOVa9To1ydWVOLiQNPayLO7J9Gb4XVNxo8z5eo9Q96VSfygW6ii fpQGKkNlI8fthYBN2ylilyUUl+ICqi03VAWbYwTLBH8poApmL8YuJcwiRmrmzi5+yKLuN9 Kk4hG6zrxVAMJhG/4gxLmGxhaze2gYNMmv5L5RPlPHJX7mFVToJS2c/YBNIcHiwuvy0TDr PeaONiHzfiiGTabqM76boh6JDHfByI0FzkK9lZtX//f5jRhjHEsz4eRx+xTiOw== 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=1788253344; 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=T0I+2CvzzO3aBkSFySnX2eMVwegAHUfYdgsGtFa1u0U=; b=uW7SaGhgdvBR2ps7/eavMvbs3GW1Zd5vzMQaOjS9/ZVaAnycxu0QeX8wmTstpsEVsnApMd Hy3W3ZnqPsm56LSxsp6r4bbA4PStLcn8GeM1hMtr6KErTAPAiLrg+5YIRqbAw2r6+zRYTU /QHayEy7AH4SAQmPb6Sa161Nh+0Ap5oAvhN63Lm1XY2gTylHiqAGGE7KGuWbSCTEc3ltDV Knvt3fgkJV/JYDvX7Vu8gZQJDrQ5dD7PBASCmXoWkCyOYVDxGfT4ncsKG1DZ59TbGDYW55 LSrB5LOgVv1FObciQ/B1mcpJcmq8eo5seBmhDy6bLYrXkS80wtzqZCcYcGIqhQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hZ0HN4MGKzrsn for ; Tue, 01 Sep 2026 09:02:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2472e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 01 Sep 2026 09:02:24 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Siva Mahadevan Subject: git: 793abbf91f7f - stable/15 - tarfs: allow mounting inside jails List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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: siva X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 793abbf91f7fe16c435c415c41b52c4e918e4204 Auto-Submitted: auto-generated Date: Tue, 01 Sep 2026 09:02:24 +0000 Message-Id: <6a9694a0.2472e.70adb16d@gitrepo.freebsd.org> The branch stable/15 has been updated by siva: URL: https://cgit.FreeBSD.org/src/commit/?id=793abbf91f7fe16c435c415c41b52c4e918e4204 commit 793abbf91f7fe16c435c415c41b52c4e918e4204 Author: Siva Mahadevan AuthorDate: 2026-08-20 04:18:43 +0000 Commit: Siva Mahadevan CommitDate: 2026-09-01 09:02:12 +0000 tarfs: allow mounting inside jails Reviewed by: des MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D58833 (cherry picked from commit ba99013a4464c2f3e8cc0a89c23d03810dc2d37e) --- sys/fs/tarfs/tarfs_vfsops.c | 2 +- usr.sbin/jail/jail.8 | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/fs/tarfs/tarfs_vfsops.c b/sys/fs/tarfs/tarfs_vfsops.c index 87607544b4b1..7875fc99a941 100644 --- a/sys/fs/tarfs/tarfs_vfsops.c +++ b/sys/fs/tarfs/tarfs_vfsops.c @@ -1236,6 +1236,6 @@ static struct vfsops tarfs_vfsops = { .vfs_unmount = tarfs_unmount, .vfs_vget = tarfs_vget, }; -VFS_SET(tarfs_vfsops, tarfs, VFCF_READONLY); +VFS_SET(tarfs_vfsops, tarfs, VFCF_JAIL | VFCF_READONLY); MODULE_VERSION(tarfs, 1); MODULE_DEPEND(tarfs, xz, 1, 1, 1); diff --git a/usr.sbin/jail/jail.8 b/usr.sbin/jail/jail.8 index a174ace98d7b..03887bd0aaa5 100644 --- a/usr.sbin/jail/jail.8 +++ b/usr.sbin/jail/jail.8 @@ -26,7 +26,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd November 13, 2025 +.Dd August 13, 2026 .Dt JAIL 8 .Os .Sh NAME @@ -798,6 +798,14 @@ This permission is effective only together with and only when .Va enforce_statfs is set to a value lower than 2. +.It Va allow.mount.tarfs +privileged users inside the jail will be able to mount and unmount the +tarfs file system. +This permission is effective only together with +.Va allow.mount +and only when +.Va enforce_statfs +is set to a value lower than 2. .It Va allow.mount.tmpfs privileged users inside the jail will be able to mount and unmount the tmpfs file system.