Re: inetd(8) pledge error

2017-10-04 Thread Jeremie Courreges-Anglas
On Wed, Oct 04 2017, Sebastian Benoit wrote: > i'm not sure that pledge there is correct. > > spawn() gets calles from gettcp() which gets called from the main event > loop, and directly from the event loop. > > The pledge here might be a convenient place to reduce pledges after the > initializati

Re: inetd(8) pledge error

2017-10-04 Thread Sebastian Benoit
i'm not sure that pledge there is correct. spawn() gets calles from gettcp() which gets called from the main event loop, and directly from the event loop. The pledge here might be a convenient place to reduce pledges after the initialization phase? It takes away the "cpath dns unix" pledges. Now

inetd(8) pledge error

2017-10-03 Thread Anthony Coulter
When inetd listens on a unix domain socket AND at least one process connects to that socket, then when inetd shuts down it tries to unlink the socket and aborts because it lacks pledge("cpath"). Repro steps: # echo '/tmp/test.sock stream unix nowait nobody /usr/bin/true true' >>inetd.conf # /usr/