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, Oct 13, 5:37 AM
Unknown Object (File)
Fri, Oct 10, 5:31 PM
Unknown Object (File)
Fri, Oct 10, 5:30 PM
Unknown Object (File)
Fri, Oct 10, 12:21 PM
Unknown Object (File)
Fri, Oct 10, 5:35 AM
Unknown Object (File)
Mon, Sep 29, 3:38 PM
Unknown Object (File)
Mon, Sep 22, 2:45 PM
Unknown Object (File)
Sun, Sep 21, 10:36 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