OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Packages
  • Assigned To No-one
  • Operating System All
  • Severity Medium
  • Priority Very Low
  • Reported Version openwrt-19.07
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Philippe D - 11.05.2020

FS#3090 - dnsmasq: daemon.err dnsmasq[6363]: failed to load names from /tmp/hosts/dhcp.cfg01411c: Permission

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

h4de5 commented on 01.09.2020 16:27

Had the very same problem, same error message about not beeing able to load dhcp.cfg01411c. described hotfix worked.

prwood commented on 06.01.2021 15:14

Confirmed that I am having this issue as well on OpenWrt 19.07.5 r11257-5090152ae3. The described hotfix worked for me as well.

pgaufillet commented on 28.02.2021 10:06

Confirmed also in master (r15225), but on specific cases only:
* Running manually /etc/init.d/dnsmasq start/restart creates /tmp/host/dhcp.cfg01411c with 644 root:root access rights.
* Running manually /etc/init.d/network start/restart creates /tmp/host/dhcp.cfg01411c with 600 root:root access rights.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing