docs/185382: missing description in rights(4) man page

Loganaden Velvindron logan at elandsys.com
Thu Jan 2 21:43:07 UTC 2014


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)


More information about the freebsd-doc mailing list