Based on discussions with pjd@, it's better to change the dhclient
to use CAP_EVENT instead of CAP_EVENT_POLL as the latter has been
deprecated.

--- bpf.c.orig  2014-01-02 21:37:12.000000000 +0400
+++ bpf.c       2014-01-02 21:37:38.000000000 +0400
@@ -269,7 +269,7 @@ if_register_receive(struct interface_inf
        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)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "[email protected]"

Reply via email to