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)
Thu, Nov 6, 5:00 AM
Unknown Object (File)
Thu, Nov 6, 2:00 AM
Unknown Object (File)
Fri, Oct 31, 12:46 AM
Unknown Object (File)
Wed, Oct 29, 5:51 AM
Unknown Object (File)
Wed, Oct 29, 4:46 AM
Unknown Object (File)
Wed, Oct 29, 2:21 AM
Unknown Object (File)
Sun, Oct 26, 10:38 PM
Unknown Object (File)
Fri, Oct 10, 10:34 AM
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