[Dnsmasq-discuss] DBus API

richardvoigt at gmail.com richardvoigt at gmail.com
Thu May 21 20:28:29 BST 2015


>
> For the short term, NM does have an /etc/NetworkManager/dnsmasq.d
> directory where you can toss dnsmasq config files, which NM will pass to
> dnsmasq when it spawns it.  Unfortunately, because D-Bus gets used on
> Ubuntu and dnsmasq isn't respawned on changes, that won't work for you.
> Ideally, dnsmasq would get some kind of SIGHUP-like signal that *would*
> re-read config files too, and then you could dump your info there and
> SIGxxx it and everything would be fine.
>

Can't seem to find this in the documentation, but the reason that SIGHUP
only rereads datafiles (hostsfile, /etc/ethers, etc) and not configuration
has been explained before:

Implementing configuration (opening port 53, among other things) requires
root privilege.  But signals are received after dnsmasq drops root.
Allowing full reconfiguration while dnsmasq is running would open the door
to privilege escalation, and therefore is excluded as an intentional design
decision.

Ideally, you would fix your wrapper's behavior that "dnsmasq isn't
respawned on changes", because this behavior is wrong.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20150521/630512aa/attachment.html>


More information about the Dnsmasq-discuss mailing list