Skip to content

Commit

Permalink
dnsmasq: fix jail_mount for serversfile
Browse files Browse the repository at this point in the history
Fix 'serversfile' option not being jail_mounted by the init script.

Signed-off-by: Bruno Victal <brunovictal@outlook.com>
  • Loading branch information
Bruno Victal authored and dangowrt committed May 2, 2022
1 parent 5109bd1 commit 0276fab
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion package/network/services/dnsmasq/files/dnsmasq.init
Expand Up @@ -972,7 +972,14 @@ dnsmasq_start()
config_list_foreach "$cfg" "addnhosts" append_addnhosts
config_list_foreach "$cfg" "bogusnxdomain" append_bogusnxdomain
append_parm "$cfg" "leasefile" "--dhcp-leasefile" "/tmp/dhcp.leases"
append_parm "$cfg" "serversfile" "--servers-file"

local serversfile
config_get serversfile "$cfg" "serversfile"
[ -n "$serversfile" ] && {
xappend "--servers-file=$serversfile"
append EXTRA_MOUNT "$serversfile"
}

append_parm "$cfg" "tftp_root" "--tftp-root"
append_parm "$cfg" "dhcp_boot" "--dhcp-boot"
append_parm "$cfg" "local_ttl" "--local-ttl"
Expand Down

0 comments on commit 0276fab

Please sign in to comment.