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
F163106956: D52265.id161231.diff
Mon, Jul 20, 3:30 AM
Unknown Object (File)
Wed, Jul 15, 6:41 AM
Unknown Object (File)
Wed, Jul 15, 6:41 AM
Unknown Object (File)
Wed, Jul 8, 10:32 AM
Unknown Object (File)
Wed, Jul 1, 11:25 PM
Unknown Object (File)
Tue, Jun 30, 4:13 AM
Unknown Object (File)
Tue, Jun 30, 4:13 AM
Unknown Object (File)
Jun 6 2026, 8:47 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 66668
Build 63551: arc lint + arc unit