diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-05-06 18:08:04 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-05-06 18:08:04 +0200 |
commit | 661278ee297247c0c7e0708924f8ce52284529fc (patch) | |
tree | 3354d9078f6709887e827714ffb1657de0dbc279 /configure.ac | |
parent | dfdb269daf539470c6bcf232a58c6cd1e4492fc8 (diff) |
timesyncd: never accept NTP time from server that is older than systemd's release time
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 318d77b302..972fc2f6bf 100644 --- a/configure.ac +++ b/configure.ac @@ -836,6 +836,14 @@ AC_ARG_WITH(ntp-servers, AC_DEFINE_UNQUOTED(NTP_SERVERS, ["$NTP_SERVERS"], [Default NTP Servers]) AC_SUBST(NTP_SERVERS) +AC_ARG_WITH(time-epoch, + AS_HELP_STRING([--with-time-epoch=SECONDS], + [TIme epoch for time clients]), + [TIME_EPOCH="$withval"], + [TIME_EPOCH="`stat -c %Y ${srcdir}/NEWS 2>/dev/null || echo 0`"]) + +AC_DEFINE_UNQUOTED(TIME_EPOCH, [$TIME_EPOCH], [Time Epoch]) + # ------------------------------------------------------------------------------ have_localed=no AC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon])) @@ -1169,6 +1177,7 @@ AC_MSG_RESULT([ timedated: ${have_timedated} timesyncd: ${have_timesyncd} default NTP servers: ${NTP_SERVERS} + time epoch: ${TIME_EPOCH} localed: ${have_localed} networkd: ${have_networkd} coredump: ${have_coredump} |