From nobody Sun Sep 28 14:02:29 2025 X-Original-To: dev-commits-src-main@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 4cZQxf1Gggz68l1B; Sun, 28 Sep 2025 14:02:30 +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 4cZQxf0T2yz3krl; Sun, 28 Sep 2025 14:02:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759068150; 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=jVQIR16fKVg7GzrvJRJwIUlceR3JGmxhGbwCTgyDpRg=; b=cNU0tFGEM3YG8nSnHj7MZGhKy2EAD0PK/cTxhIsQS//XF1ouzmSI92Q65dT3parTMOysFl eK9Q0ia289gQV2xJ/olE7PbbOi+AbEWKvDWCbNoqT9JGhQ+61PZTv+QeWmZgiKNK5HILdU i97tkrk4TErL0MkmyQQUpmTDwEfJ0IW+yNw7wyzXSaveUUrG/ca+tQt4bG2bm6NaW4Epzb IiXE5IH2lXD+jhxwKZ4XdfcXD4HZuyqd7psq+ze2LKPeh4INn5k1isib3Vbb1fqeqKK01H sIfARHRhVnFh5OCGdP0NboTN86IZ4FXPYydtwR+T53Ld6d/TFwP+kAYB+snYpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759068150; 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=jVQIR16fKVg7GzrvJRJwIUlceR3JGmxhGbwCTgyDpRg=; b=Y+DdQylczxtXENSrSJIxQnrxQUlw4QTW8CBinM8ebCsJDQUNr6KjxJn6iq8vTSe2G5+8U1 OubUJy3IjkU7mMarQwtecWkNDr/jfZlI2OFm82MR8DiW3hs6bvuv8OvhhZ4hc//qfJN7Iu B6yymE33TArbkrvy1gsI4yQqsCoQpu8K+3uUrTuq2DjT40b5a6xy5/LIAOGJEYThLWemAa l6Qjm0UR67h/4HMsrzIUND8pwl2Nyr+Hozz3I2c+z6sdWMijGSYss/iQzmec8GO+VELSFA aHSfGqkgiuQCya1hgkjnKxaw9Y6HYb90dkTv5SzSttUly9CeWY9Gt90jqyThEQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759068150; a=rsa-sha256; cv=none; b=nu7HA7SFAT4crlFHXm5LyXPnJ5faBa9v2XtO+PQ8kGurYQoHOewwQ3RmMmk8wQr24STOTi wpLIz9PUOfcgH5OmLHVmjwbvj6zF4didpehivxSjY3dx/HzIm9/AUyUG0w3xfZw72oGmMd j+tvJGkprLhWorvgDt8g06YialHSo+TIhs9XugLM0sajDsvnt7RwbXxzUStQ2ZW+btRM8u 2wXCiOl1sQt6M6H9iiv3T71nMUl7gNKLg6OVb8hyV+030xZjtq/jDZxkR1qJTX+T/XnW7j 1z9TVqFLTTjw6G/d526pVKWLPz/F20bUev/7ChqCkD83d9f1abATVv5kAV2Wcg== 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 4cZQxd6yWwz6Yj; Sun, 28 Sep 2025 14:02:29 +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 58SE2TLM050587; Sun, 28 Sep 2025 14:02:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58SE2TBJ050584; Sun, 28 Sep 2025 14:02:29 GMT (envelope-from git) Date: Sun, 28 Sep 2025 14:02:29 GMT Message-Id: <202509281402.58SE2TBJ050584@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: c1d5fc4e0cfc - main - mac_do.4: Mention "from" part's GID can also match supplementary groups List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: c1d5fc4e0cfc63d23379457ac0b51c59c60b27c7 Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=c1d5fc4e0cfc63d23379457ac0b51c59c60b27c7 commit c1d5fc4e0cfc63d23379457ac0b51c59c60b27c7 Author: Olivier Certner AuthorDate: 2025-09-28 13:55:20 +0000 Commit: Olivier Certner CommitDate: 2025-09-28 14:01:55 +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 --- 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