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)
Tue, Sep 15, 11:55 PM
Unknown Object (File)
Thu, Sep 10, 12:31 PM
Unknown Object (File)
Sat, Sep 5, 6:06 AM
Unknown Object (File)
Wed, Sep 2, 7:08 PM
Unknown Object (File)
Wed, Sep 2, 10:53 AM
Unknown Object (File)
Mon, Aug 31, 4:34 AM
Unknown Object (File)
Fri, Aug 28, 2:17 PM
Unknown Object (File)
Fri, Aug 28, 1:30 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