OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Jeffery To - 06.02.2019

FS#2107 - dnsmasq instances can read DHCP host files of all other instances

If multiple instances of dnsmasq are configured, then every instance has access to the DHCP host files of all other instances of dnsmasq.

For example, if two instances are configured in /etc/config/dhcp, “default” and “guest”, then when they are started (or if they receive SIGHUP), then each instance will log something like this to syslog:

Thu Feb  7 04:26:47 2019 daemon.info dnsmasq[3092]: read /tmp/hosts/odhcpd - 1 addresses
Thu Feb  7 04:26:47 2019 daemon.info dnsmasq[3092]: read /tmp/hosts/dhcp.default - 2 addresses
Thu Feb  7 04:26:47 2019 daemon.info dnsmasq[3092]: read /tmp/hosts/dhcp.guest - 2 addresses

From /etc/init.d/dnsmasq it doesn’t look like this is intentional, as procd_add_jail_mount() is called with the instance’s own host file ($HOSTFILE) only.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing