]> git.ipfire.org Git - thirdparty/chrony.git/commit
conf: create directories before dropping root
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 10 Aug 2015 15:02:12 +0000 (17:02 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 12 Aug 2015 12:45:20 +0000 (14:45 +0200)
commit6d42dd860350d0e64a73f774ca60a022c2d43615
tree662568d2aadb75fcb732cf5ca63505de0bcba657
parente7100e106dc8d511f5403e2e4d739b91515fe282
conf: create directories before dropping root

Create logdir and dumpdir before dropping root. Set their uid/gid to the
user chronyd will switch to. This allows chronyd to create the
directories in a directory where the user won't have write permissions
(e.g. /var/lib).
conf.c
conf.h
logging.c
logging.h
main.c
sources.c