diff options
author | Steven Barth <steven@midlink.org> | 2015-04-10 10:19:17 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-04-10 10:19:17 +0000 |
commit | 6bc333e002bbddd3564391537d02e69e561f3197 (patch) | |
tree | 536465dbf519acf1ededb6c08220ba66f81088e5 /package/network/services/dnsmasq/files | |
parent | 5144bdef3788af870cd8b0f085a4ff404a7ced3b (diff) | |
download | upstream-6bc333e002bbddd3564391537d02e69e561f3197.tar.gz upstream-6bc333e002bbddd3564391537d02e69e561f3197.tar.bz2 upstream-6bc333e002bbddd3564391537d02e69e561f3197.zip |
dnsmasq: bump to 2.73rc4
Fix crash caused by malformed DNS requests
Improved DNSSEC handling
Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45354 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/dnsmasq/files')
-rw-r--r-- | package/network/services/dnsmasq/files/dnsmasq.init | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index 20333c810a..b2dfb979bc 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -205,6 +205,7 @@ dnsmasq() { [ "$dnssec" -gt 0 ] && { xappend "--conf-file=$TRUSTANCHORSFILE" xappend "--dnssec" + xappend "--dnssec-timestamp=/etc/dnsmasq.time" append_bool "$cfg" dnsseccheckunsigned "--dnssec-check-unsigned" } @@ -555,7 +556,7 @@ start_service() { procd_add_jail dnsmasq ubus log procd_add_jail_mount $CONFIGFILE $TRUSTANCHORSFILE $HOSTFILE /etc/passwd /dev/urandom /etc/dnsmasq.conf /tmp/dnsmasq.d /tmp/resolv.conf.auto /etc/hosts /etc/ethers - procd_add_jail_mount_rw /var/run/dnsmasq/ /tmp/dhcp.leases + procd_add_jail_mount_rw /var/run/dnsmasq/ /tmp/dhcp.leases /etc/dnsmasq.time procd_close_instance @@ -565,6 +566,10 @@ start_service() { mkdir -p /var/lib/misc touch /tmp/dhcp.leases + if [ ! -f /etc/dnsmasq.time ]; then + touch -t 197001010000 /etc/dnsmasq.time + chmod 0777 /etc/dnsmasq.time + fi echo "# auto-generated config file from /etc/config/dhcp" > $CONFIGFILE echo "# auto-generated config file from /etc/config/dhcp" > $HOSTFILE |