docs/185382: missing description in rights(4) man page
Loganaden Velvindron
logan at elandsys.com
Thu Jan 2 21:50:01 UTC 2014
The following reply was made to PR docs/185382; it has been noted by GNATS.
From: Loganaden Velvindron <logan at elandsys.com>
To: FreeBSD-gnats-submit at FreeBSD.org, freebsd-doc at FreeBSD.org
Cc: pjd at FreeBSD.org
Subject: Re: docs/185382: missing description in rights(4) man page
Date: Thu, 2 Jan 2014 13:43:03 -0800
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