[openwrt/openwrt] dnsmasq: add /tmp/hosts/ to jail_mount

LEDE Commits lede-commits at lists.infradead.org
Mon Jul 19 05:13:17 PDT 2021


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/3a94c2ca5cf7c11ca150fa3ae884e7be8d07a281

commit 3a94c2ca5cf7c11ca150fa3ae884e7be8d07a281
Author: Nick Hainke <vincent at systemli.org>
AuthorDate: Sun Jul 18 15:32:44 2021 +0200

    dnsmasq: add /tmp/hosts/ to jail_mount
    
    Programs like the olsr-name-plugin write hostname files to "/tmp/hosts/".
    If you don't add this to the jail_mount, dnsmasq can't read it anymore.
    
    Signed-off-by: Nick Hainke <vincent at systemli.org>
---
 package/network/services/dnsmasq/files/dnsmasq.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index f86b4b04f3..d5f70a0ee5 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -1119,7 +1119,7 @@ dnsmasq_start()
 	procd_set_param respawn
 
 	procd_add_jail dnsmasq ubus log
-	procd_add_jail_mount $CONFIGFILE $TRUSTANCHORSFILE $HOSTFILE $RFC6761FILE $DHCPBOGUSHOSTNAMEFILE /etc/passwd /etc/group /etc/TZ /dev/null /dev/urandom $dnsmasqconffile $dnsmasqconfdir $resolvdir $user_dhcpscript /etc/hosts /etc/ethers /sbin/hotplug-call $EXTRA_MOUNT $DHCPSCRIPT
+	procd_add_jail_mount $CONFIGFILE $TRUSTANCHORSFILE $HOSTFILE $RFC6761FILE $DHCPBOGUSHOSTNAMEFILE /etc/passwd /etc/group /etc/TZ /dev/null /dev/urandom $dnsmasqconffile $dnsmasqconfdir $resolvdir $user_dhcpscript /etc/hosts /etc/ethers /sbin/hotplug-call $EXTRA_MOUNT $DHCPSCRIPT /tmp/hosts/
 	procd_add_jail_mount_rw /var/run/dnsmasq/ $leasefile
 
 	procd_close_instance



More information about the lede-commits mailing list