opnsense-src/sbin/dhclient
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
..
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
alloc.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
bpf.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
clparse.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
conflex.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
convert.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
dhclient-script Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
dhclient-script.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
dhclient.8 dhclient: Update dhclient man page for n flag 2024-08-09 14:49:47 -07:00
dhclient.c base: do a sweep of setgroups() that mean to clear the supplementaries 2025-07-26 01:11:58 -05:00
dhclient.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
dhclient.conf.5 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
dhclient.leases.5 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
dhcp-options.5 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
dhcp.h dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925 2024-09-28 10:49:02 +02:00
dhcpd.h dhclient: Keep two clocks 2025-04-12 19:09:56 -07:00
dhctoken.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
dispatch.c dhclient: Keep two clocks 2025-04-12 19:09:56 -07:00
errwarn.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
hash.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
inet.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend.options Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
options.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
packet.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
parse.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
privsep.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
privsep.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
tables.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
tree.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
tree.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00