#19463: since @45354 dnsmasq fails to start & syntax error reported
-------------------------+------------------------
 Reporter:  kevindb      |      Owner:  developers
     Type:  defect       |     Status:  new
 Priority:  high         |  Milestone:
Component:  base system  |    Version:  Trunk
 Keywords:  dnsmasq      |
-------------------------+------------------------
 Since svn://svn.openwrt.org/openwrt/trunk@45354 dnsmasq has issues
 starting up.  Relevant lines in dnsmasq.init are


 {{{
 if [ ! -f /etc/dnsmasq.time ]; then
 touch -t 197001010000 /etc/dnsmasq.time
 chmod 0777 /etc/dnsmasq.time
 fi
 }}}

 Unfortunately '-t' option to touch isn't supported, certainly on
 base/default TP-Link Archer C7 config.

 Creating a timestamp file outside of dnsmasq's own mechanism will
 confuse it too.  Dnsmasq's algorithm is simple in that if the
 system time is later than the modified time on the timestamp
 file then the system time is considered valid and dnssec signature
 checking is performed.  If time isn't valid then signature
 time checking is not performed which will allow ntp server name
 resolution to proceed.  Once time has skipped forward, dnsmasq
 will notice and the do full dnssec validation as well as creating
 a timestamp file.

 If the timestamp file doesn't exist then dnsmasq considers time
 invalid until it exceeds 2015-01-01-00:00:00.  Pre-creating a
 timestamp file isn't helpful to this process.

 The timestamp file must also survive reboot.   I've attached a
 patch which I think fixes these issues, though I'm unclear if
 it works correctly with the new secure computing features of
 procd.

--
Ticket URL: <https://dev.openwrt.org/ticket/19463>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to