dnsmasq: fix more dnsmasq jail issues
authorDaniel Golle <daniel@makrotopia.org>
Sun, 1 Aug 2021 10:25:41 +0000 (11:25 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 1 Aug 2021 10:35:31 +0000 (11:35 +0100)
commitac4e8aa2f8d98158ea7b749f877269f1f5fa9c5a
treedec2ebb2edac132c10e2b42c1848f2e7c75d1b1a
parent59c63224e11d6c4eca27131a73bf16218e47a271
dnsmasq: fix more dnsmasq jail issues

 * remove superflus mounts of /dev/null and /dev/urandom
 * reset EXTRA_MOUNTS at the beginning of the script
 * add mount according to ignore_hosts_dir
 * don't add mount for file which is inside a directory already in the
   EXTRA_MOUNTS list

Fixes: 59c63224e1 ("dnsmasq: rework jail mounts")
Reported-by: Hartmut Birr <e9hack@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/network/services/dnsmasq/files/dnsmasq.init