Re: dhcrelay: pledge(2)

2016-12-07 Thread Rafael Zalamena
On Wed, Dec 07, 2016 at 02:47:25PM +0100, Reyk Floeter wrote: > Hi, > > dhcrelay drops privs but isn't pledged yet - here it is. > > It is simpler than dhclient: it only needs stdio and route because it > pre-opens all file descriptors (UDP, bpf), does the bpf ioctls before, > and only needs

dhcrelay: pledge(2)

2016-12-07 Thread Reyk Floeter
Hi, dhcrelay drops privs but isn't pledged yet - here it is. It is simpler than dhclient: it only needs stdio and route because it pre-opens all file descriptors (UDP, bpf), does the bpf ioctls before, and only needs "route" for interface status ioctls on runtime. OK? Reyk Index: