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)
Sun, Feb 8, 12:30 PM
Unknown Object (File)
Sun, Feb 8, 5:09 AM
Unknown Object (File)
Sun, Feb 8, 12:17 AM
Unknown Object (File)
Sat, Jan 31, 8:03 PM
Unknown Object (File)
Sat, Jan 31, 4:05 AM
Unknown Object (File)
Tue, Jan 20, 6:40 PM
Unknown Object (File)
Dec 31 2025, 12:16 PM
Unknown Object (File)
Dec 26 2025, 10:30 PM
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