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
F139634762: D52265.diff
Sun, Dec 14, 10:27 AM
Unknown Object (File)
Fri, Dec 12, 3:18 PM
Unknown Object (File)
Wed, Nov 26, 4:35 PM
Unknown Object (File)
Wed, Nov 26, 5:29 AM
Unknown Object (File)
Sun, Nov 23, 8:26 PM
Unknown Object (File)
Nov 8 2025, 6:55 PM
Unknown Object (File)
Nov 2 2025, 8:33 PM
Unknown Object (File)
Nov 2 2025, 8:27 PM
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