From nobody Thu Oct 2 16:58:25 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 4ccyfn4DYdz69YMQ; Thu, 02 Oct 2025 16:58: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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ccyfn31NHz3nXg; Thu, 02 Oct 2025 16:58:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759424305; 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=dX/L1M/i6zr2goKTgXJjwZtUvjCdlgjTtpxbdEZQ54c=; b=N5wj4Zslz8rj+R2+Fiqfk3ctAsJj9FYspH+289KQMSft8v9JQyZkVcqhjTtWw95JizSvsW VX0OjVRAh0WDBZuxKe50x2dU78LBFWsrtheC77RT5gGcwBAB/tejvwHWaP4D0mmPjhKV/s uTLsTtKP/MYmEWMbEdqy+Rm/yKBeAHFbI0bXHSH4xbi3EhT5hsVmOGImjffMJeSSMe4AOy 3EvvIPIO2ljMQIjx4O1bW0It5DAyFxBu6nN9lqx0lCyTtiI4HiiIOtfMGQGf4lTp3kuh6G 3ij0R03nq6V21EUL6I7ILkid0X6med9u4oL6+SvEiHs0zpqzTJfKhUKhV0+Xbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759424305; 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=dX/L1M/i6zr2goKTgXJjwZtUvjCdlgjTtpxbdEZQ54c=; b=dnsmZT9ksmF0kBHORHmL/2v+weCB04bQgJS5fpFuhSLXLXCtAzw3esv8mHqioxURFXXjDY U5RJ+NpCoZt0rtY0mnBl51niCpCHWo2sdlnXIYm6b1dNaOgtD7NZZGsyrFBahcefclyPWS Co3dtQiP7e/PPb6olOp3pkl1CdVXVdF2Ecvg5cyEhle/mpMB+9ZohOX8ZvrXVnowW5fmNZ cY3hbKcxXLqL0Dta7Fd5Lxx2c43BGbgQqLG78yJAr6mMPaaXsVjFylSkw9xqIYlNZmPiGR WeeUsG2s8dnUPc5a1WKeCtXl1mkG8DEHi/IQzdA3Jq+LxyVhwsOWMcC6qz3ikA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759424305; a=rsa-sha256; cv=none; b=i8ZqL2hjBs/bqeWXTyIruhssbVsn7CupZ5W03elY5CQM7PEPqXjYiZ+B4NGVHPPfI3o0db SOHezLbrKN1WrFnmg51LZyYTiLRef1OV0LESUSVULFFMfUb+SCUeJDC/DCIznc3wkH4b/M xb1S7TFplDBxwGSJIrzgNW0er0Q0A8BMaZ1/RJdxQ/hbFSS189wyhuk+pnZwWf/kVLFrGu ebvQC6UAZmi0xi3natYY9OrUepy+ygWDtaJHVMxUp4TuUWRD2jUnsS4pPVLNKvJo0yre08 DJhT2v142ogilhQq/2ubRWLiRwQs2SaoaFeaA9M7ibu3TYbQSENTzwNnV+ooug== 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 4ccyfn2TqWz28r; Thu, 02 Oct 2025 16:58:25 +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 592GwPs5028149; Thu, 2 Oct 2025 16:58:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 592GwPVN028146; Thu, 2 Oct 2025 16:58:25 GMT (envelope-from git) Date: Thu, 2 Oct 2025 16:58:25 GMT Message-Id: <202510021658.592GwPVN028146@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: 907fbfd7e4b6 - stable/15 - 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/15 X-Git-Reftype: branch X-Git-Commit: 907fbfd7e4b6cae315863cf63ca77dee8afb3b00 Auto-Submitted: auto-generated The branch stable/15 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=907fbfd7e4b6cae315863cf63ca77dee8afb3b00 commit 907fbfd7e4b6cae315863cf63ca77dee8afb3b00 Author: Olivier Certner AuthorDate: 2025-09-28 13:55:20 +0000 Commit: Olivier Certner CommitDate: 2025-10-02 16:57:14 +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