Page MenuHomeFreeBSD

cred: 'kern.ngroups' tunable: Rework the comment on the initial value
ClosedPublic

Authored by olce on Aug 29 2025, 11:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 12:22 PM
Unknown Object (File)
Fri, Oct 10, 12:22 PM
Unknown Object (File)
Fri, Oct 10, 12:22 PM
Unknown Object (File)
Fri, Oct 10, 5:36 AM
Unknown Object (File)
Tue, Oct 7, 11:32 AM
Unknown Object (File)
Fri, Sep 26, 6:42 PM
Unknown Object (File)
Sun, Sep 21, 5:54 AM
Unknown Object (File)
Sat, Sep 20, 4:31 AM
Subscribers

Details

Summary

Remove the parts about the effective GID being stored as the first
element of the groups array, as this is generally not the case now after
commit be1f7435ef21 ("kern: start tracking cr_gid outside of
cr_groups[]") (some credentials export structures still have the old
layout, and need to do the 'ngroups_max + 1' computation, but given the
computation needed to obtain a size in bytes, this detail is not really
important here).

Remove the part about 32-bit machines, avoiding another modification
when support for them is removed.

No functional change.

Sponsored by: The FreeBSD Foundation

Diff Detail

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