Introduce two new ioctl(2) commands, BIOCLOCK and BIOCSETWF. These commands
authorMatthias Schmidt <matthias@dragonflybsd.org>
Fri, 14 Mar 2008 09:52:10 +0000 (09:52 +0000)
committerMatthias Schmidt <matthias@dragonflybsd.org>
Fri, 14 Mar 2008 09:52:10 +0000 (09:52 +0000)
commit7cff0268bd0b8be00040bd20986f63701d7ea8ca
tree6ea0622ed13a1f645d8c575dc544c50140c0a3fe
parentd7baa0f8266144d5897d70b2cd74eed4bb01b50b
Introduce two new ioctl(2) commands, BIOCLOCK and BIOCSETWF. These commands
enhance the security of bpf(4) by further relinquishing the privilege of
the bpf(4) consumer (assuming the ioctl commands are being implemented).

This change is needed to properly support some programs from OpenBSD, such
as pflogd and dhclient.

Reviewed-by: sephe@
Obtained-from: OpenBSD via FreeBSD
sys/net/bpf.c
sys/net/bpf.h
sys/net/bpfdesc.h