Introduce two new ioctl(2) commands, BIOCLOCK and BIOCSETWF. These commands
commit9f21ad35b323605de0cedfe48a63df9163b09b57
authorMatthias Schmidt <matthias@dragonflybsd.org>
Fri, 14 Mar 2008 09:52:10 +0000 (14 09:52 +0000)
committerMatthias Schmidt <matthias@dragonflybsd.org>
Fri, 14 Mar 2008 09:52:10 +0000 (14 09:52 +0000)
treebd61fc0419f14fd6358b6a71ce80bb13d672a318
parentdd10e77e2e44351ff6ba54c387e5cc4b04837ae8
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