Page MenuHomeFreeBSD

cred: Separate constant for the number of inlined groups
ClosedPublic

Authored by olce on Oct 4 2024, 8:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 25, 11:07 AM
Unknown Object (File)
Mon, Dec 23, 10:57 PM
Unknown Object (File)
Mon, Dec 23, 9:56 AM
Unknown Object (File)
Dec 11 2024, 9:01 PM
Unknown Object (File)
Dec 9 2024, 1:00 AM
Unknown Object (File)
Nov 29 2024, 5:11 AM
Unknown Object (File)
Nov 18 2024, 5:29 AM
Unknown Object (File)
Nov 18 2024, 1:45 AM
Subscribers

Details

Summary

CRED_SMALLGROUPS_NB now holds the number of inlined groups in field
'cr_smallgroups'. XU_NGROUPS stays the number of groups allowed in
'struct xucred'. The first is an implementation detail, while the
second is part of a public interface. All mentions of XU_NGROUPS in the
tree have been reviewed and only those concerning the implementation
detail have been changed to use CRED_SMALLGROUPS_NB (they were all in
'kern_prot.c').

No functional change (intended).

Diff Detail

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

Event Timeline

olce requested review of this revision.Oct 4 2024, 8:07 AM

Seems good. This is just a correctness change, yes? As in, CRED_SMALLGROUPS_NB is not touched by any later change in the series?

This revision is now accepted and ready to land.Oct 28 2024, 5:17 PM

Seems good. This is just a correctness change, yes? As in, CRED_SMALLGROUPS_NB is not touched by any later change in the series?

Yes, this is effectively a correctness fix, with also the aim of enabling a possible increase of CRED_SMALLGROUPS_NB in the future (whereas XU_NGROUPS can't be changed because of backwards compatibility), although for now I don't feel a particular need to do it.