diff options
| author | Olivier Certner <olce@FreeBSD.org> | 2025-09-28 13:55:20 +0000 |
|---|---|---|
| committer | Olivier Certner <olce@FreeBSD.org> | 2025-09-28 14:01:55 +0000 |
| commit | c1d5fc4e0cfc63d23379457ac0b51c59c60b27c7 (patch) | |
| tree | 569649b36efa66fc5fbbcf037be57765dd55ca6d | |
| parent | 202b59c35ead5bd2b71331169bdeb4845cb655c1 (diff) | |
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
| -rw-r--r-- | share/man/man4/mac_do.4 | 10 |
1 files 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 |
