openwrtv4/package
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
..
base-files base-files: sysupgrade: correct command help text 2018-01-12 16:06:04 +01:00
boot uboot-envtools: add support for GL.iNet GL-AR750 2018-01-15 00:12:13 +01:00
devel strace: Update to 4.20 2017-12-07 11:46:37 +08:00
firmware ipq-wifi: add board-2.bin for OpenMesh A42 2018-01-13 07:58:39 +01:00
kernel ath9k, ath10k(-ct): move spectral scan support under a separate config symbol 2018-01-13 19:54:45 +01:00
libs treewide: replace LEDE_GIT with PROJECT_GIT 2018-01-10 21:27:32 +01:00
network dnsmasq: use SIGINT for dnssec time valid 2018-01-15 22:34:51 +01:00
system fstools: update to latest git HEAD 2018-01-13 16:40:07 +01:00
utils treewide: replace LEDE_GIT with PROJECT_GIT 2018-01-10 21:27:32 +01:00
Makefile build: remove package preconfig feature 2018-01-13 19:54:44 +01:00