openwrt/package/network/services
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
..
authsae treewide: clean up and unify PKG_VERSION for git based downloads 2016-12-22 16:42:21 +01:00
dnsmasq dnsmasq: use SIGINT for dnssec time valid 2018-01-15 22:34:51 +01:00
dropbear dropbear: disable MD5 HMAC and switch to sha1 fingerprints 2017-12-12 22:24:17 +01:00
ead network/services/ead: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:52 +02:00
hostapd hostapd: bump PKG_RELEASE after 802.11w changes 2018-01-07 12:42:45 +01:00
igmpproxy igmpproxy: remove firewall rules when service is stopped 2017-11-14 22:01:44 +01:00
ipset-dns ipset-dns: bump to git HEAD 2017-10-08 20:51:03 +03:00
lldpd merge: packages: update branding in core packages 2017-12-08 19:41:18 +01:00
odhcpd treewide: replace LEDE_GIT with PROJECT_GIT 2018-01-10 21:27:32 +01:00
omcproxy omcproxy: silence fw3 warnings 2018-01-10 21:38:55 +01:00
openvpn add PKG_CPE_ID ids to package and tools 2017-11-17 02:24:35 +01:00
openvpn-easy-rsa openvpn-easy-rsa: update to 3.0.1 2017-05-31 00:28:26 +02:00
ppp add PKG_CPE_ID ids to package and tools 2017-11-17 02:24:35 +01:00
relayd treewide: replace LEDE_GIT with PROJECT_GIT 2018-01-10 21:27:32 +01:00
samba36 merge: packages: update branding in core packages 2017-12-08 19:41:18 +01:00
uhttpd treewide: replace LEDE_GIT with PROJECT_GIT 2018-01-10 21:27:32 +01:00
umdns treewide: replace LEDE_GIT with PROJECT_GIT 2018-01-10 21:27:32 +01:00
wireguard wireguard: bump to 20171221 2017-12-23 22:08:12 +01:00