[FS#198] image: commit a16a8814ead80984ce4ef7bed756434119b3aafa breaks dnsmasq

LEDE Bugs lede-bugs at lists.infradead.org
Sat Oct 1 13:56:55 PDT 2016


The following task has a new comment added:

FS#198 - image: commit a16a8814ead80984ce4ef7bed756434119b3aafa breaks dnsmasq
User who did this - arjendekorte (arjendekorte)

----------
I just tried again. This is what I get:

Sat Oct  1 22:46:44 2016 daemon.err dnsmasq[2705]: failed to load names from /etc/hosts: Permission denied
Sat Oct  1 22:46:44 2016 daemon.info dnsmasq[2705]: read /tmp/hosts/dhcp - 4 addresses
Sat Oct  1 22:46:44 2016 daemon.info dnsmasq[2705]: read /tmp/hosts/odhcpd - 0 addresses
Sat Oct  1 22:46:44 2016 daemon.err dnsmasq-dhcp[2705]: failed to read /etc/ethers: Permission denied

The weird thing is, the permissions on these files:

# ls -l /etc/hosts /etc/ethers
-rw-r--r--    1 root     root             0 Oct  1 19:18 /etc/ethers
-rw-r-----    1 root     root           110 Oct  1 19:18 /etc/hosts

and

# ls -l /rom/etc/hosts /rom/etc/ethers
ls: /rom/etc/ethers: No such file or directory
-rw-r-----    1 root     root           110 Oct  1 19:18 /rom/etc/hosts

I can understand the reason why /etc/hosts is not readable, dnsmasq is running as dnsmasq:dnsmasq and so is unable to read it. But what I don't understand is, why /etc/ethers can't be read. According to the permissions, it should be readable by dnsmasq. Even after rebooting, it can't be read. So either dnsmasq is not looking at the right location, or it is started before it is created.

Last, changing the permissions on /etc/hosts to 644 still doesn't make it readable for dnsmasq. The same errors show up at (re)starting dnsmasq.


----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=198#comment540



More information about the lede-bugs mailing list