dnsmasq: rework jail mounts

e9hack e9hack at gmail.com
Sun Aug 1 06:58:45 PDT 2021


Hi,

in last update of jail mounts, this part looks wrong:

--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -10,6 +10,7 @@ ADD_LOCAL_DOMAIN=1
  ADD_LOCAL_HOSTNAME=1
  ADD_WAN_FQDN=0
  ADD_LOCAL_FQDN=""
+EXTRA_MOUNT=""

  BASECONFIGFILE="/var/etc/dnsmasq.conf"
  BASEHOSTFILE="/tmp/hosts/dhcp"

It shall be:

--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -818,9 +817,10 @@ dnsmasq_start()
         config_get_bool disabled "$cfg" disabled 0
         [ "$disabled" -gt 0 ] && return 0

-       # reset list of DOMAINS and DNS servers (for each dnsmasq instance)
+       # reset list of DOMAINS, DNS servers and EXTRA mounts (for each dnsmasq instance)
         DNS_SERVERS=""
         DOMAIN=""
+       EXTRA_MOUNT=""
         CONFIGFILE="${BASECONFIGFILE}.${cfg}"
         CONFIGFILE_TMP="${CONFIGFILE}.$$"
         HOSTFILE="${BASEHOSTFILE}.${cfg}"

Regards,
Hartmut









More information about the openwrt-devel mailing list