Page MenuHomeFreeBSD

MAC/do: Restore matching the first supplementary group
ClosedPublic

Authored by olce on Aug 29 2025, 11:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 8, 6:55 PM
Unknown Object (File)
Sun, Dec 7, 12:00 PM
Unknown Object (File)
Thu, Dec 4, 2:32 AM
Unknown Object (File)
Wed, Dec 3, 11:25 AM
Unknown Object (File)
Sat, Nov 29, 9:24 AM
Unknown Object (File)
Sun, Nov 16, 11:07 PM
Unknown Object (File)
Sat, Nov 15, 11:21 AM
Unknown Object (File)
Nov 11 2025, 5:26 AM
Subscribers

Details

Summary

As 'cr_gid' was in fact stored in cr_groups[0],
rule_grant_supplementary_groups() would loop only on further elements of
cr_groups[]. Now that cr_groups[0] is not 'cr_gid' anymore, but some
supplementary group, take it into account.

cred: Update some comments after 'cr_gid' is no more cr_groups[0]

Fixes: be1f7435ef218b1d ("kern: start tracking cr_gid outside of cr_groups[]")
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable