-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dnsmasq: improve dnssec-timestamp-checking related logging behavior a…
… bit Refs #163
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
make/dnsmasq/patches/040-dnssec_signature_timestamp_startup_state.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Improve dnssec-timestamp-checking related logging behavior. | ||
|
||
dnsmasq already logs (at startup) | ||
DNSSEC signature timestamps not checked until system time valid | ||
if the system time is considered to be invalid. | ||
|
||
Do also log the opposite case, i.e. if the time at startup is valid. | ||
|
||
--- src/dnsmasq.c | ||
+++ src/dnsmasq.c | ||
@@ -806,6 +806,9 @@ | ||
if (rc == 1) | ||
my_syslog(LOG_INFO, _("DNSSEC signature timestamps not checked until system time valid")); | ||
|
||
+ if (daemon->timestamp_file && rc == 0) /* daemon->back_to_the_future is probably an equivalent condition */ | ||
+ my_syslog(LOG_INFO, _("system time considered valid, checking DNSSEC signature timestamps.")); | ||
+ | ||
for (ds = daemon->ds; ds; ds = ds->next) | ||
my_syslog(LOG_INFO, _("configured with trust anchor for %s keytag %u"), | ||
ds->name[0] == 0 ? "<root>" : ds->name, ds->keytag); |