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, Sep 7, 5:16 PM
Unknown Object (File)
Sun, Sep 6, 9:37 PM
Unknown Object (File)
Sun, Sep 6, 4:31 AM
Unknown Object (File)
Sat, Sep 5, 9:01 PM
Unknown Object (File)
Fri, Aug 21, 11:06 AM
Unknown Object (File)
Wed, Aug 12, 7:01 PM
Unknown Object (File)
Aug 10 2026, 8:30 AM
Unknown Object (File)
Aug 8 2026, 5:46 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 66674
Build 63557: arc lint + arc unit