Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jan 2014 13:43:03 -0800
From:      Loganaden Velvindron <logan@elandsys.com>
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-doc@FreeBSD.org
Subject:   Re: docs/185382: missing description in rights(4) man page
Message-ID:  <20140102214303.GA6706@mx.elandsys.com>
In-Reply-To: <201401010440.s014e0G0082702@freefall.freebsd.org>
References:  <201401010430.s014U606071143@oldred.freebsd.org> <201401010440.s014e0G0082702@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140102214303.GA6706>