From nobody Fri Oct 10 17:16:31 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 4cjth027s2z6BckQ; Fri, 10 Oct 2025 17:16:32 +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 4cjtgz6WLTz3gVD; Fri, 10 Oct 2025 17:16:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760116591; 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=71Ju3UxklgcrcbsF4UUiSZpMGnl0pRoP+pDhF5QbE4k=; b=UdGMaAo3866fC9kiSspNPzZ8DNzzssmhX+hZCUJhgY1mij2ULvt37dBN5nzP/D/qY5UI6O x2p/UZZEULPumI9zxwOU9PU6dZ8QA38VkuM4/vrXAwdckY8K0SQ8jJsjEBI6XNUBMrAgwv uCw2oEWj/yvail86pkSsi1/1PTdrgKJyicT3Ip7TQSRwDlPnUYyKhDDEUVwBUDfDzKdyiO lj9jPQHoBnmh+cZ+m1ngOezl9IUXF1LZ4vN51abVvqrfU9aQgp46CanHwR4w8uu/P1md0T uKc3impoYbKiE+c2j51nmcclIVIFFk78X+tnVchtOOCp7Pbof2UenUUrpMrlWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760116591; 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=71Ju3UxklgcrcbsF4UUiSZpMGnl0pRoP+pDhF5QbE4k=; b=QAFKD+9aukb4BhguGmeTah968YAwx+EXZ8knq1XOz8Zrncq0W2VGAKUIjElyrULbk7cG+7 vugEeKowq9zaR34auOVtHzhm8lao/5uoug0/Wo8lgZwNQ/s4YldmCUyaL2RvpVLDm45OHc yn7qi2kb5UM+bVG8nNNmNoMr7PzwTkd7u7Re1C4BwtFyudMXU/jkR+eIxVw9QJTbIVqa6s EZFE344c2YcxfeUfUhWzCT6nn0AGt4/SSnK9Yv7B97yV57pLfypULfUG2tHa93hla2JJ7O AUu/98nGg8drwg9FxXNpAFOdU4IA+VAPghwFH4Gc8/ORXfDwwQ0e9UtziZ0srQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760116591; a=rsa-sha256; cv=none; b=VVZUn9rEodjIDUfbAEWH80sMM0ahyrX5zfGrfcAV22sepxGBYi0vJO+Pn1zk5Ij3X4Ig+X b6l8e/nMxuWc48b7q8l8bMfNZ9YSFqUEV8OI342vKnOO2SbBCUpan3A2E3umZzdxx58xLk S18xqNppzGVnykO+u7XFV3Ss6IjQmhxIBISKeIRkORxQHax4KcP01q2CpQMhrvlQE0HVC+ tW9E1Wa4oqy1ntQ70n7xJA6VX1OA7rB4fJLWCbr3Fs4XLsKqX76+1JCVBBJtUke+2TQl/p cGXxcEuneT2wXzFsPSTJcJKUmEkQcybu5IAW7jpSZGwR7VaXZP9WjGKAcMpgYA== 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 4cjtgz5x72z1BWL; Fri, 10 Oct 2025 17:16:31 +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 59AHGVNs009558; Fri, 10 Oct 2025 17:16:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59AHGVih009555; Fri, 10 Oct 2025 17:16:31 GMT (envelope-from git) Date: Fri, 10 Oct 2025 17:16:31 GMT Message-Id: <202510101716.59AHGVih009555@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: 995d37ecd3b6 - stable/14 - mac_do.4: Mention "from" part's GID can also match supplementary groups 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 995d37ecd3b64f3d5c0689540357617e93b8566c Auto-Submitted: auto-generated The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=995d37ecd3b64f3d5c0689540357617e93b8566c commit 995d37ecd3b64f3d5c0689540357617e93b8566c Author: Olivier Certner AuthorDate: 2025-09-28 13:55:20 +0000 Commit: Olivier Certner CommitDate: 2025-10-10 17:15:59 +0000 mac_do.4: Mention "from" part's GID can also match supplementary groups MFC after: 3 days Event: EuroBSDCon 2025 Sponsored by: The FreeBSD Foundation (cherry picked from commit c1d5fc4e0cfc63d23379457ac0b51c59c60b27c7) --- share/man/man4/mac_do.4 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/share/man/man4/mac_do.4 b/share/man/man4/mac_do.4 index 4dcb54c89673..39bfafd95474 100644 --- a/share/man/man4/mac_do.4 +++ b/share/man/man4/mac_do.4 @@ -94,8 +94,10 @@ i.e., one of the literal strings or .Ql gid . .Li Aq id -must be the numerical ID of a user or group, and is matched with the current -process real ID of the corresponding type. +must be the numerical ID of a user or group and is matched against the current +process real ID of the corresponding type, and on type +.Ql gid +additionally against the supplementary groups. .Ss Rule's Ao to Ac Part The second part of a rule, .Li Aq to , @@ -377,8 +379,8 @@ Same as the first example, but lifting any constraints on groups, allowing the process to become part of any groups it sees fit. .El .Pp -Here are several examples of single rules matching processes having a real group -ID of 10001: +Here are several examples of single rules matching processes having 10001 as +their real group IDs or in their supplementary groups: .Bl -tag -width indent .It Li gid=10001>uid=0 Makes 10001 a more powerful