From: Ruben Jenster Date: Thu, 23 Mar 2023 10:15:52 +0000 (+0100) Subject: dnsmasq: add dhcphostsfile to ujail sandbox X-Git-Tag: v6.0-20240103~28 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=78fb757224ad2de83e9edf8d82dea5f5af29d316;p=librecmc%2Flibrecmc.git 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 (cherry picked from commit 936df715de3d33947ce38ca232b05c2bd3ef58f1) --- diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index c4ca3eb2db..d2bcca46ed 100755 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -1178,6 +1178,7 @@ dnsmasq_start() [ ! -e "$logfacility" ] && touch "$logfacility" procd_add_jail_mount_rw "$logfacility" esac + [ -e "$hostsfile" ] && procd_add_jail_mount $hostsfile procd_close_instance }