1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00
freebsd/sbin/dhclient
Brooks Davis f2c99d387c Allocate a struct ifreq rather than using a (wrong) computed size for
the BIOCSETIF ioctl.

The kernel always copies an entire struct ifreq and IPv4 addresses will
always fit in an ifreq.

On systems with pointers larger than 64-bits, the computed size will be
less than the size of struct ifreq, potentially resulting in the kernel
attempting to copyin memory from outside the allocation.

Reviewed by:	jhb
Obtained from:	CheriBSD
MFC after:	1 week
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D8445
2016-11-22 22:45:15 +00:00
..
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
alloc.c
bpf.c Remove duplicated includes. 2014-06-26 13:57:44 +00:00
clparse.c dhclient: add support for interface-mtu (26) 2016-09-02 21:14:29 +00:00
conflex.c dhclient(1): correct obvious mismatch in get_char(). 2016-06-03 03:40:39 +00:00
convert.c
dhclient-script Set svn:executable on dhclient-script 2011-12-30 14:46:53 +00:00
dhclient-script.8 use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
dhclient.8 use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
dhclient.c dhclient: add support for interface-mtu (26) 2016-09-02 21:14:29 +00:00
dhclient.conf
dhclient.conf.5 mdoc: improvements to SEE ALSO. 2014-12-27 08:22:58 +00:00
dhclient.leases.5 mdoc: improvements to SEE ALSO. 2014-12-27 08:22:58 +00:00
dhcp-options.5 use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
dhcp.h Support domain-search in dhclient(8) 2011-12-04 14:44:31 +00:00
dhcpd.h dhclient: add support for interface-mtu (26) 2016-09-02 21:14:29 +00:00
dhctoken.h
dispatch.c Allocate a struct ifreq rather than using a (wrong) computed size for 2016-11-22 22:45:15 +00:00
errwarn.c Make dhclient use a pid file. Modify the rc script accordingly; while 2011-10-13 17:20:45 +00:00
hash.c
inet.c
Makefile Explicitly add more files to the 'runtime' package. 2016-02-09 20:19:31 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
options.c Spelling fixes for sbin/ 2012-01-07 16:09:33 +00:00
packet.c Since r270929 raw sockets expect network byte order. 2014-09-11 05:48:39 +00:00
parse.c In sbin/dhclient, since we know the size of the source strings anyway, 2011-12-17 01:29:46 +00:00
privsep.c dhclient: add support for interface-mtu (26) 2016-09-02 21:14:29 +00:00
privsep.h dhclient: add support for interface-mtu (26) 2016-09-02 21:14:29 +00:00
tables.c dhclient(8): Enable numbered user class ID option 2016-09-20 19:21:41 +00:00
tree.c
tree.h