HomeFreeBSD

linux: Simplify further getgroups() after 'cr_gid' not in cr_groups[]

Description

linux: Simplify further getgroups() after 'cr_gid' not in cr_groups[]

No functional change (intended).

While here, fix/improve style a bit and in setgroups().

MFC after: 5 days
MFC to: stable/15
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52276

Details

Provenance
olceAuthored on Aug 28 2025, 3:29 PM
Differential Revision
D52276: linux: Simplify further getgroups() after 'cr_gid' not in cr_groups[]
Parents
rGf75d0dc53392: cr_canseeothergids(): Make the logic easier to grasp
Branches
Unknown
Tags
Unknown