FS#3090 - dnsmasq: daemon.err dnsmasq[6363]: failed to load names from /tmp/hosts/dhcp.cfg01411c: Permission #7844
Labels
core packages
pull request/issue for core (in-tree) packages
flyspray
release/19.07
pull request/issue targeted (also) for OpenWrt 19.07 release
pduveau:
Router model : Netgear WNDR3700v1
I upgraded to 19.0.7 yesterday. Since I have the follow issue :
all static leases can't be resolved (25 hosts).
In system.log I found this logs each time I (re)start dnsmasq :
Mon May 11 05:47:28 2020 daemon.info dnsmasq[6363]: read /etc/hosts - 4 addresses
Mon May 11 05:47:28 2020 daemon.err dnsmasq[6363]: failed to load names from /tmp/hosts/dhcp.cfg01411c: Permission denied
Mon May 11 05:47:28 2020 daemon.info dnsmasq-dhcp[6363]: read /etc/ethers - 0 addresses
So I patched the init.d/dnsmasq adding this line :
chmod og+r $HOSTFILE
after the line :
mv -f $HOSTFILE_TMP $HOSTFILE
in function dnsmasq_start
This patch is operational with those logs :
Mon May 11 05:51:57 2020 daemon.info dnsmasq[6613]: read /etc/hosts - 4 addresses
Mon May 11 05:51:57 2020 daemon.info dnsmasq[6613]: read /tmp/hosts/dhcp.cfg01411c - 25 addresses
Mon May 11 05:51:57 2020 daemon.info dnsmasq-dhcp[6613]: read /etc/ethers - 0 addresses
Best regards.
Philippe
The text was updated successfully, but these errors were encountered: