freebsd-src/usr.sbin/rwhod
Kyle Evans 1286fd8ecc base: do a sweep of setgroups() that mean to clear the supplementaries
In the future, this will be beneficial as we move the egid out of the
groups list; there's no need to track the egid explicitly in our
supplemental groups, and doing so could become a security issue if
setgid() would not end up switching groups[0] as it does today and
we end up wanting to change our egid.

The rwhod diff is a little gratuitious, but I like patterns and
setgroups() -> setgid() -> setuid() is a lot more common than
setgid() -> setgroups() -> setuid().

This is sweep is not exhaustive and intentionally did not include
contrib/, crypto/ or tools/.

Reviewed by:	olce
Differential Revision:	https://reviews.freebsd.org/D51510
2025-07-26 01:11:58 -05:00
..
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend
rwhod.8
rwhod.c base: do a sweep of setgroups() that mean to clear the supplementaries 2025-07-26 01:11:58 -05:00