From nobody Mon Jul 28 01:13:38 2025 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 4br0q700PHz63LRP; Mon, 28 Jul 2025 01:13:38 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4br0q66CMDz3d4Z; Mon, 28 Jul 2025 01:13:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753665218; 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=4tX2qeSEDEOosTuklwj3Y/4WFKfyNdD5RQU9DSkQiXs=; b=yXQqLmBloFprP6ub9cf5W+LBRuT7EvGsC569R7RdFJ7D881hceo14V6IZndZNgdUfcO7T9 Jdox/HIuMn12URdxXvB0lk+cgM4CydS4i66VXepGfy4gKqOYA0ewGrVBTfj7y2Mf1gxL24 SulgO4b5ZcivsS3uB0M9sEV17AnJ62BTe9gaAD619jVPvbucpHTP/LloImTJhhV1lmLqJ7 Il+R3PINDGX+DJHaQp8tT5ZRmP2K8GZ3soXrv46LIVHIcQjjq7QYotBzyZaOvgD+xPBlGi nmrZY63ZxAHCF6hsguPKPUCP0tQ8ZpULzkSvtHagnk8nOd2+koEm5PNhwHvo7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753665218; 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=4tX2qeSEDEOosTuklwj3Y/4WFKfyNdD5RQU9DSkQiXs=; b=mFnPEZiGBvD2Ja719bl+xxwvRKSbQjX1zeTfQ/iNoUhABOvK09ViuHfOZ17f5F2POMGmQ0 n0v8/WmxGXO7jlNTFHKTiAUPmYd2deujhbvIfKTPG/5odxgP8BIIbAMoH+P7WHF2D/yM0t yltnRkTgntcJsmxp5c0kgZYH9isyWHRXD0pagKWs9ndDfqEHaXxj8o6k+KFWvP3vVVy3j/ fG9VHMbuCDFNmBzLWLxPJwjSWBtjhqgVhndbeLG+OUt3gnOGElA3uMSmDsU8oNtz5Tq4tb FZ19B1QeVk4+WF7tiXHmpdnFHM/scwig/sqbL9Y1YkWOt+JaSFm5GtAdyfVhtQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1753665218; a=rsa-sha256; cv=none; b=fB/melGZlURFcigT+BFYRvswhD8crCc6ohIrUzbZz4Y15H91DPablOlcI+8cYLC7lZ6l9y 6vW1GKaRuKrgTteRMBH5BKheLNLL6UgXgJkT9cTmhCKdc02yuhOmSDqR7JxM2BAcm3pVSY ogbm9vaGx0BvqCk9v7VwWDTsi5D0RBDQIiLT6h1Qivi/352YTU74Ad6jzUptNf6bAQTY/V UrZbLHNf1apuNJ+bLQTMrWqmN+yjdei+T0Z89hQjJx7nEEge3/qJDqP+6NNe2RI9N/TkoT JhEzAb234VQFlQkoTFKx10R6H82M0mIzzeQUlRWGxs4T5OvlYwEuYm+rgmjVcg== 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 4br0q65n7wz8PB; Mon, 28 Jul 2025 01:13:38 +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 56S1Dc7G094269; Mon, 28 Jul 2025 01:13:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56S1DcLc094266; Mon, 28 Jul 2025 01:13:38 GMT (envelope-from git) Date: Mon, 28 Jul 2025 01:13:38 GMT Message-Id: <202507280113.56S1DcLc094266@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Certner Subject: git: 04a6dc7974ee - main - chroot.8: Be more precise when describing '-u', '-g' and '-G' 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 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/main X-Git-Reftype: branch X-Git-Commit: 04a6dc7974ee02004c9ccbb0c28d14a3271fb56a Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=04a6dc7974ee02004c9ccbb0c28d14a3271fb56a commit 04a6dc7974ee02004c9ccbb0c28d14a3271fb56a Author: Olivier Certner AuthorDate: 2025-07-25 06:36:17 +0000 Commit: Olivier Certner CommitDate: 2025-07-28 01:11:12 +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 --- 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 f26b7e937da9..4a1a5a396631 100644 --- a/usr.sbin/chroot/chroot.8 +++ b/usr.sbin/chroot/chroot.8 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd July 20, 2021 +.Dd July 25, 2025 .Dt CHROOT 8 .Os .Sh NAME @@ -52,13 +52,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