openwrtv3/package/network/services/dnsmasq/patches
Kevin Darbyshire-Bryant aba3b1c6a3 dnsmasq: use SIGINT for dnssec time valid
Dnsmasq used SIGHUP to do too many things: 1) set dnssec time validation
enabled, 2) bump SOA zone serial, 3) clear dns cache, 4) reload hosts
files, 5) reload resolvers/servers files.

Many subsystems within LEDE can send SIGHUP to dnsmasq: 1) ntpd hotplug
(to indicate time is valid for dnssec) 2) odhcpd (to indicate a
new/removed host - typically DHCPv6 leases) 3) procd on interface state
changes 4) procd on system config state changes, 5) service reload.

If dnssec time validation is enabled before the system clock has been
set to a sensible time, name resolution will fail.  Because name
resolution fails, ntpd is unable to resolve time server names to
addresses, so is unable to set time.  Classic chicken/egg.

Since commits 23bba9cb33 (service reload) &
4f02285d8b (system config)  make it more
likely a SIGHUP will be sent for events other than 'ntpd has set time'
it is more likely that an errant 'name resolution is failing for
everything' situation will be encountered.

Fortunately the upstream dnsmasq people agree and have moved 'check
dnssec timestamp enable' from SIGHUP handler to SIGINT.

Backport the upstream patch to use SIGINT.
ntpd hotplug script updated to use SIGINT.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2018-01-15 22:34:51 +01:00
..
110-ipset-remove-old-kernel-support.patch dnsmasq: update to dnsmasq 2.77test1 2017-02-05 22:26:23 +01:00
210-dnssec-improve-timestamp-heuristic.patch dnsmasq: bump to 2.77rc3 2017-05-12 21:30:56 +02:00
230-fix-poll-h-include-warning-on-musl.patch dnsmasq: bump to v2.78 2017-10-02 18:26:53 +02:00
240-ubus.patch dnsmasq: backport infinite dns retries fix 2017-12-06 14:55:12 +01:00
250-Fix-infinite-retries-in-strict-order-mode.patch dnsmasq: backport infinite dns retries fix 2017-12-06 14:55:12 +01:00
260-dnssec-SIGINT.patch dnsmasq: use SIGINT for dnssec time valid 2018-01-15 22:34:51 +01:00