mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-23 21:12:09 -05:00
dnsmasq: add dhcphostsfile to ujail sandbox
The dhcphostsfile must be mounted into the (ujail) sandbox.
The file can not be accessed without this mount.
Signed-off-by: Ruben Jenster <rjenster@gmail.com>
(cherry picked from commit 936df715de)
This commit is contained in:
parent
066ac40c29
commit
5030620db6
@ -1178,6 +1178,7 @@ dnsmasq_start()
|
|||||||
[ ! -e "$logfacility" ] && touch "$logfacility"
|
[ ! -e "$logfacility" ] && touch "$logfacility"
|
||||||
procd_add_jail_mount_rw "$logfacility"
|
procd_add_jail_mount_rw "$logfacility"
|
||||||
esac
|
esac
|
||||||
|
[ -e "$hostsfile" ] && procd_add_jail_mount $hostsfile
|
||||||
|
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user