From 936df715de3d33947ce38ca232b05c2bd3ef58f1 Mon Sep 17 00:00:00 2001 From: Ruben Jenster Date: Thu, 23 Mar 2023 11:15:52 +0100 Subject: [PATCH] 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 --- package/network/services/dnsmasq/files/dnsmasq.init | 1 + 1 file changed, 1 insertion(+) diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index 21e330ec28c1..608ef013f102 100755 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -1212,6 +1212,7 @@ dnsmasq_start() [ ! -e "$logfacility" ] && touch "$logfacility" procd_add_jail_mount_rw "$logfacility" esac + [ -e "$hostsfile" ] && procd_add_jail_mount $hostsfile procd_close_instance } -- 2.30.2