]> git.ipfire.org Git - thirdparty/chrony.git/commit
main: open cmdmon and NTP internet sockets before dropping root
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 24 Aug 2015 15:15:31 +0000 (17:15 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 25 Aug 2015 15:09:18 +0000 (17:09 +0200)
commit8854c00d481840c507423f773cfaea100e980d78
treebecb0c8ccf491cc1c39a2dea453abcd97d53b47f
parentc0867b58f5c82f3bb545fb24828c7207a83391af
main: open cmdmon and NTP internet sockets before dropping root

Call the CAM, NIO, NCR initialization functions and setup the access
restrictions before root is dropped. This will be needed on NetBSD,
where it's not possible to bind sockets to privileged ports without the
root privileges. Split the creation of the Unix domain command socket
from the CAM initialization to keep the chrony user as the owner of the
socket.
cmdmon.c
cmdmon.h
main.c