CVSROOT: /cvs Module name: src Changes by: mes...@cvs.openbsd.org 2018/08/02 00:28:35
Modified files: usr.sbin/eigrpd: eigrpd.c eigrpe.c Log message: Currently when eigrpd(8) shuts down then its unix control socket is being unlink(2)ed from eigrpe engine process, the problem is that this proc is chrooted and therefore the socket will never be deleted. In order to solve it we need to bring control_cleanup() function, which calls unlink(2), into the main proc which is not chrooted. This is the way it's already done for several other daemons we have in our base. Additionally we also need to move the "cpath" pledge(2) promise from the child process to the main process in order for the latter to be allowed to delete the socket and while here shuffle the promises into their canonical form. OK florian@ and benno@