CC: dnsmasq: add some missing files to the jail
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 27 Jul 2015 11:49:48 +0000 (11:49 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 27 Jul 2015 11:49:48 +0000 (11:49 +0000)
found with strace, not sure we got all of them though

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
Backport of r46467

SVN-Revision: 46511

package/network/services/dnsmasq/files/dnsmasq.init

index b0a5fbc04f81ee67bb37c73ff7e9f7b9f8e4b71d..676c4b7299a196bd7bcd61754e5558253318e91d 100644 (file)
@@ -556,7 +556,7 @@ start_service() {
        procd_set_param respawn
 
        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 $CONFIGFILE $TRUSTANCHORSFILE $HOSTFILE /etc/passwd /etc/group /etc/TZ /dev/null /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 $TIMESTAMPFILE
        
        procd_close_instance