Page MenuHomeFreeBSD

stress2: Fix removal of supplementary groups
ClosedPublic

Authored by olce on Aug 29 2025, 11:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 15, 6:41 AM
Unknown Object (File)
Wed, Jul 15, 6:41 AM
Unknown Object (File)
Wed, Jul 8, 5:18 AM
Unknown Object (File)
Tue, Jul 7, 2:10 AM
Unknown Object (File)
Mon, Jul 6, 6:24 AM
Unknown Object (File)
Mon, Jul 6, 4:35 AM
Unknown Object (File)
Sun, Jul 5, 7:45 PM
Unknown Object (File)
Sun, Jul 5, 3:58 PM
Subscribers

Details

Summary

To this end, call setgroups(0, NULL) instead of passing the effective
GID. This stance is fully compatible with older versions of FreeBSD.

Fixes: 9da2fe96ff2e ("kern: fix setgroups(2) and getgroups(2) to match other platforms")
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable