diff options
author | Ruben Jenster <rjenster@gmail.com> | 2023-03-23 11:15:52 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-04-02 22:07:27 +0200 |
commit | 5030620db650b873b3214f425809516d5220d9bc (patch) | |
tree | 822514f5bebf5464c7778d1f5d92b7513e10826d | |
parent | 066ac40c29a371e676c53398028792afaa61444b (diff) | |
download | upstream-5030620db650b873b3214f425809516d5220d9bc.tar.gz upstream-5030620db650b873b3214f425809516d5220d9bc.tar.bz2 upstream-5030620db650b873b3214f425809516d5220d9bc.zip |
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 936df715de3d33947ce38ca232b05c2bd3ef58f1)
-rwxr-xr-x | package/network/services/dnsmasq/files/dnsmasq.init | 1 |
1 files changed, 1 insertions, 0 deletions
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 } |