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
F108569466: D46911.diff
Sun, Jan 26, 11:21 AM
Unknown Object (File)
Sun, Jan 12, 6:56 PM
Unknown Object (File)
Dec 25 2024, 11:07 AM
Unknown Object (File)
Dec 23 2024, 10:57 PM
Unknown Object (File)
Dec 23 2024, 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
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 59722
Build 56608: arc lint + arc unit

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.