summaryrefslogtreecommitdiffstats
path: root/sbin/slaacd/control.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix SMALL build when done from sbin/slaacdkn2021-03-201-1/+3
| | | | | | | distrib/special/slaccd is the actual SMALL user but having it build from here is useful, too; in fact, it showed some more unused variables under SMALL. OK florian
* remove uneeded md5.h includejsg2021-03-021-2/+1
| | | | ok florian@
* Move control_state and ctl_conns to control.c, it's not neededflorian2021-01-191-2/+18
| | | | | | elsewhere and unbreaks -fno-common. Inspired by claudio Problem reported by mortimer
* Make slaacd(8) imsg processing more paranoid. Unexpected size mismatchespamela2019-03-111-1/+5
| | | | | | | mean we should no longer trust processes, so we call fatal(x). The control socket is the exception, where we ignore rather than allow crashes due to data from the outside. suggestion/input and OK florian@
* Introduce the IMSG_DATA_SIZE() macro to replace recurring math onpamela2019-03-021-11/+7
| | | | | imsg.hdr.len to shorten and simplify code. correction and OK florian@
* Leave the control socket behind on shutdown. It doesn't hurt anyone.florian2018-08-041-12/+1
| | | | | | | | On the other hand it is much more powerful to get rid of cpath; slaacd has no filesystem access whatsoever. Triggered by mestre@'s work to fix unlinking in other daemons and a question from deraadt@ OK mestre
* Add error handling to unconfuse myself when playing with pledgepath().florian2018-04-261-2/+3
|
* Move privileged initialization from frontend to main process.florian2017-12-101-4/+2
| | | | | | Needed for future work where we will spin up children via fork - privdrop - exec. Child processes will no longer come up with root privileges.
* Move slaacd to /sbinflorian2017-06-031-0/+301
jca points out that all the other interface configuration tools live there (like ifconfig or dhclient). Furthermore it starts so early in the boot process that /usr might not be mounted yet if it's a nfs filesystem. sthen and deraadt agree