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)
Sat, Nov 2, 10:02 PM
Unknown Object (File)
Sat, Nov 2, 10:22 AM
Unknown Object (File)
Sun, Oct 27, 5:12 PM
Unknown Object (File)
Wed, Oct 9, 1:59 PM
Unknown Object (File)
Oct 5 2024, 6:38 AM
Unknown Object (File)
Oct 4 2024, 11:19 PM
Unknown Object (File)
Oct 4 2024, 9:12 PM
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.Mon, Oct 28, 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.