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>
Mon, 2 Aug 2021 20:42:31 +0000 (21:42 +0100)
commit6ca34c5c0c8bc394093c7b4da015816d5ebfbe91
tree24962b16ddef59b9ba8b9b87176def57e8021c36
parentb88ab440367c15260406851fab4df72eb99ba9b9
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>
(cherry picked from commit ac4e8aa2f8d98158ea7b749f877269f1f5fa9c5a)
package/network/services/dnsmasq/files/dnsmasq.init