summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/bpf.c
diff options
context:
space:
mode:
authorbrueffer <brueffer@FreeBSD.org>2014-02-06 21:36:14 +0000
committerbrueffer <brueffer@FreeBSD.org>2014-02-06 21:36:14 +0000
commit543bcc0057e05e52b71d57128cc8fe6754558917 (patch)
tree7fcbfa6bc318a209d2b033049b2b08320e64c28f /sbin/dhclient/bpf.c
parentc51bf58e25e2cdb22838b0a3aa7fcf2c5a19e056 (diff)
downloadFreeBSD-src-543bcc0057e05e52b71d57128cc8fe6754558917.zip
FreeBSD-src-543bcc0057e05e52b71d57128cc8fe6754558917.tar.gz
Use CAP_EVENT instead of the deprecated CAP_POLL_EVENT.
PR: 185382 (based on) Submitted by: Loganaden Velvindron Reviewed by: pjd MFC after: 1 week
Diffstat (limited to 'sbin/dhclient/bpf.c')
-rw-r--r--sbin/dhclient/bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c
index c0a1720..311bcc7 100644
--- a/sbin/dhclient/bpf.c
+++ b/sbin/dhclient/bpf.c
@@ -269,7 +269,7 @@ if_register_receive(struct interface_info *info)
if (ioctl(info->rfdesc, BIOCLOCK, NULL) < 0)
error("Cannot lock bpf");
- cap_rights_init(&rights, CAP_IOCTL, CAP_POLL_EVENT, CAP_READ);
+ cap_rights_init(&rights, CAP_IOCTL, CAP_EVENT, CAP_READ);
if (cap_rights_limit(info->rfdesc, &rights) < 0 && errno != ENOSYS)
error("Can't limit bpf descriptor: %m");
if (cap_ioctls_limit(info->rfdesc, cmds, 2) < 0 && errno != ENOSYS)
OpenPOWER on IntegriCloud