Re: [HEADSUP] ucred / group changes in FreeBSD 15.0
- Reply: Kyle Evans : "Re: [HEADSUP] ucred / group changes in FreeBSD 15.0"
- In reply to: Kyle Evans : "[HEADSUP] ucred / group changes in FreeBSD 15.0"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Aug 2025 08:36:58 UTC
Kyle Evans <kevans@FreeBSD.org> writes: > The major struct ucred change[0] here is that we now track the egid > outside of the cr_groups array. We've had a cr_gid macro to alias > cr_groups[0] for over 30 years, but the macro has now been replaced by > actual members in struct ucred and struct xucred. In the xucred case, > we use some union trickery to alias it to the first element of > cr_groups to avoid breaking the ABI. Why not just: gid_t cr_gid; /* effective group id */ gid_t cr_groups[XU_NGROUPS - 1]; which would be fully ABI compatible? DES -- Dag-Erling Smørgrav - des@FreeBSD.org