From nobody Fri Sep 12 09:53:01 2025 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 4cNV995Ls9z67FPZ; Fri, 12 Sep 2025 09:53:01 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cNV994nHBz3N7m; Fri, 12 Sep 2025 09:53:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757670781; 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=XOdhM/1SDybuSGfvHRs/m0NjgcGa0xHwMdT3Z3AKIXc=; b=Db1U/y/MBoTJmeea32agBD1/9qgkA5gMV2mLMM1naSwwkWss0NlXqO3T2n4ffcMiJ63MEw q7kZrOBa/Eb5d7nC3OANxZVI3bZbywUknQHeoYUCCyKAWMDesqn7V0jFsr5dHNmlDWFTqG Hw/0yytpRXVo5jpRa2xZnhzzmPEriecXeCjAeKxZ34hHF67yiTHff4rKy6/XYU5w+nKflj OfdtF6vuqmpT0s323kR7REOyrnyqgGgKC7tqMVVJzIeKYe6ve7+MWKeYbgfgFU1ui9yiDB fd/qdc8ffkLkpMpbgE+6K6T2Bti+DNth+KPzudmjweE/A0UuF7vQ+Gd3B+T1cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757670781; 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=XOdhM/1SDybuSGfvHRs/m0NjgcGa0xHwMdT3Z3AKIXc=; b=jNYj8OTOhbBM7g8vKbekxf8K+RnSShznIas0F7QNve9lVjKDK0/Pvzr9gVDUFyZWib/9/R kEkHTc6WzepN41lsZS8Vl/6uOGA6cXZFBU74O31vB57Aje6ahlgIpaI+s53Rvfc9bi4Bsy x879L/0+wAds3gosXcf6NjawdkDE6hhriDzUIHNcixzFxfp7ZPWAuG7vMUDl3f7X+WRU+T y1mLCHDwdLZAo6XPXgkYnO6MJGPeNC+dyFytGij85fx8OuILpxc9FfE3MLwoKp9p9SMiM8 LP4NRlE0nEWNjphGVdqYa5DRtCIWFCn+VRR37yhYpD5zVtvsk/N/xDN2uzrAwQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757670781; a=rsa-sha256; cv=none; b=kshWhOcqNm2H5lX2uDFehhvw9qnKFL/6qaxwlb0SXB5YZvG6+THGbqjdaKRHyzc2EgXAqW +h0U2nkPFDUgQzXv/mleixrJZDirG1GymXbr9LFsTb7ijg71nBna4l9LPH4EHsE6vCtnfx +sCum/8o7SsRdxXsiO6EWRqtH8CGAblE7effKhaDbbC+hSP5ScwIY4abQN19NGaPqs9GG4 h4DWq8tMbSEoqbw5QN57c3OJBeCyrWuQJMg/OoOpPu54gH2f+DwCO6B0Dfl7MNIc7CYFKF JV3xTvl7sDjIpQFJqolb5VGPTjKd0t7gw+D3vHyBnyZ4HjDBmnwIsLg4ErzuEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cNV994NtkzpGQ; Fri, 12 Sep 2025 09:53:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58C9r15x084969; Fri, 12 Sep 2025 09:53:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58C9r13Y084967; Fri, 12 Sep 2025 09:53:01 GMT (envelope-from git) Date: Fri, 12 Sep 2025 09:53:01 GMT Message-Id: <202509120953.58C9r13Y084967@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: f3631902a58f - stable/14 - chroot.8: Be more precise when describing '-u', '-g' and '-G' 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olce X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: f3631902a58ffa659a5eebc15395992953b5a30b Auto-Submitted: auto-generated The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=f3631902a58ffa659a5eebc15395992953b5a30b commit f3631902a58ffa659a5eebc15395992953b5a30b Author: Olivier Certner AuthorDate: 2025-07-25 06:36:17 +0000 Commit: Olivier Certner CommitDate: 2025-09-12 09:51:37 +0000 chroot.8: Be more precise when describing '-u', '-g' and '-G' Reviewed by: kevans, ziaee MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D51511 (cherry picked from commit 04a6dc7974ee02004c9ccbb0c28d14a3271fb56a) --- usr.sbin/chroot/chroot.8 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/usr.sbin/chroot/chroot.8 b/usr.sbin/chroot/chroot.8 index dfc915aa1298..e434a5b99fbf 100644 --- a/usr.sbin/chroot/chroot.8 +++ b/usr.sbin/chroot/chroot.8 @@ -27,7 +27,7 @@ .\" .\" @(#)chroot.8 8.1 (Berkeley) 6/9/93 .\" -.Dd July 20, 2021 +.Dd July 25, 2025 .Dt CHROOT 8 .Os .Sh NAME @@ -54,13 +54,15 @@ or an interactive copy of the user's login shell. The options are as follows: .Bl -tag -width "-G group[,group ...]" .It Fl G Ar group Ns Op Cm \&, Ns Ar group ... -Run the command with the permissions of the specified groups. +Run the command with the specified groups as supplementary groups. .It Fl g Ar group -Run the command with the permissions of the specified -.Ar group . +Run the command with the specified +.Ar group +as the real, effective and saved groups. .It Fl u Ar user -Run the command as the -.Ar user . +Run the command with the specified +.Ar user +as the real, effective and saved users. .It Fl n Use the .Dv PROC_NO_NEW_PRIVS_CTL