dnsmasq: add /tmp/hosts/ to jail_mount
authorNick Hainke <vincent@systemli.org>
Sun, 18 Jul 2021 13:32:44 +0000 (15:32 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 19 Jul 2021 12:11:23 +0000 (13:11 +0100)
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@systemli.org>
package/network/services/dnsmasq/files/dnsmasq.init

index f86b4b04f3678bc2c68d5871ead6c7e0fc90384a..d5f70a0ee51a01edd1c1298ac2825140ad747019 100644 (file)
@@ -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