dnsmasq: add dhcphostsfile to ujail sandbox
authorRuben Jenster <rjenster@gmail.com>
Thu, 23 Mar 2023 10:15:52 +0000 (11:15 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 1 Apr 2023 20:22:49 +0000 (22:22 +0200)
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>
package/network/services/dnsmasq/files/dnsmasq.init

index 21e330ec28c1a00d5b5a2c9cfd81bbfa812f321f..608ef013f102c61c3c5e3a0f0715e19c235c3643 100755 (executable)
@@ -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
 }