Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
openwrt-bot opened this issue Feb 6, 2019 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

jefferyto:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant