HomeFreeBSD

linux: setgroups(): Fix the group number's upper limit

Description

linux: setgroups(): Fix the group number's upper limit

'ngroups_max' is the maximum number of supplementary groups the system
will accept, and this has not changed.

Fixes: 9da2fe96ff2e ("kern: fix setgroups(2) and getgroups(2) to match other platforms")
MFC after: 5 days
MFC to: stable/15
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52277

(cherry picked from commit bbdea7c9f4aeae26b35f842382df0203fcda24a5)

Details

Provenance
olceAuthored on Aug 28 2025, 4:58 PM
Differential Revision
D52277: linux: setgroups(): Fix the group number's upper limit
Parents
rG8013a7137d3a: linux: Simplify further getgroups() after 'cr_gid' not in cr_groups[]
Branches
Unknown
Tags
Unknown