summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntpd.c
AgeCommit message (Expand)Author
2019-11-11Also implement "trusted" for sensors; do not do constraint validationOtto Moerbeek
2019-11-11Disable -s and -S functionality. -s would force time using NTP packets withoutTheo de Raadt
2019-11-10Introduce a "trusted" modifier, for peers that should be on a local netOtto Moerbeek
2019-11-10- validate sensor values against constraintsOtto Moerbeek
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-06-27Allow logging to both stderr and syslog; don't reset the log level ifOtto Moerbeek
2019-06-12Fix init of syslog for childs and teach dns process about synced state.Otto Moerbeek
2019-06-09Introducing autmatic settime mode: if some preconditions are metOtto Moerbeek
2019-01-14Prevent multiple ntpds from tripping over each other.Florian Obser
2018-11-29update for libtls default cert changes.Ted Unangst
2018-11-06Use TLS_CA_CERT_FILE instead of a separate define.Joel Sing
2018-08-31the main process must chdir to /, since it cannot have daemon() do theTheo de Raadt
2018-08-08ntpd unveils the cert.pem "r" file (which is passed-over-socket to theTheo de Raadt
2018-08-04Revert back previous commit, we have decided that socket files don't cause anyRicardo Mestre
2018-08-02ntpd(8) has logic in place to delete its control socket on shutdown, but itRicardo Mestre
2017-01-09Stop accessing verbose and debug variables from log.c directly.Reyk Floeter
2016-12-01Remove unused variable which was leaking memory, and while here remove 2 otherRicardo Mestre
2016-09-26Teach ntpd(8) constraint process to use exec*() instead of just forking,Rafael Zalamena
2016-09-26Teach ntpd(8) how to use socket status to shutdown the daemon. While atRafael Zalamena
2016-09-14Teach ntpd(8) how to fork+exec.Rafael Zalamena
2016-09-03Remove the oh so funny "LOSS OF MIND" from the diclaimer that was notReyk Floeter
2016-05-02prepare userland for removing chroot(2) from allowed syscalls under pledge(2).Sebastien Marie
2016-02-02Remove setproctitle() for the parent process. Because rc.d(8) uses processStuart Henderson
2016-01-27Don't attempt to kill() the constraint in the wrong process. TheReyk Floeter
2016-01-27update ntpd log initialization to work like relayd, fix debug log levelsBrent Cook
2016-01-11sneaky whitespace snuck in againTheo de Raadt
2015-12-29Don't assume fprintf() will set the FILE * error condition.Todd C. Miller
2015-12-19Switch and sync to the log.c variant from httpd/relayd/iked/snmpd/vmd.Reyk Floeter
2015-12-05EAGAIN handling for imsg_read. OK henning@ benno@Claudio Jeker
2015-11-24Cache values from getpwnam() done at initialization, which need to beTheo de Raadt
2015-10-23Rather than re-opening the driftfile to write, keep it open; rewindingTheo de Raadt
2015-10-12Move execution of the constraints from the ntp to the parent process.Reyk Floeter
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-03In the ntpctl(1) case, after it has connect()'d to ntpd we can tame "stdio"Theo de Raadt
2015-07-18replace bzero with memsetBrent Cook
2015-03-11-s is not optional, sadly;Jason McIntyre
2015-02-11Remove dead code (IMSG_HOST_DNS has been moved from the parent toReyk Floeter
2015-02-10spacingReyk Floeter
2015-02-10Don't show the subseconds when displaying the constraint offset.Reyk Floeter
2015-02-10Add support for "constraints": when configured, ntpd(8) will query theReyk Floeter
2015-01-21Fix deferred host DNS lookups.Brent Cook
2015-01-19Use initial assignment of action to check for errors.Brent Cook
2015-01-14Switch drift file format to ppm for compatibility with the ntp.orgChristian Weisgerber
2015-01-13bump failure to set the initial time from debug to warningBrent Cook
2015-01-13fix some memory leaks in dns handling.Brent Cook
2015-01-09remove excessive/wrong use of sys/param.hTheo de Raadt
2015-01-08sync log.c from smtpd.Brent Cook
2015-01-04rename sockaddr_un variables from 'sun' to the more common 'sa'.Brent Cook
2015-01-04Add a missing include for time.h to get the definitions of clock_gettime and ...Brent Cook
2014-02-10Run the serving and privileged ntpd processes at high priority and theDarren Tucker