image: commit a16a8814 breaks dnsmasq
Username: Arjen de Korte
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=198
Commit a16a8814 causes dnsmasq to fail to read /etc/hosts and /etc/ethers. Message in the log mentions permissions denied. Notable observation is that permissions of /rom/etc/hosts after installation are 640, where 644 was used previously.
It also causes that when LuCI is built in a sysupgrade image to fail with
Forbidden You don't have permission to access /cgi-bin/luci on this server.
Similarly as for dnsmasq, many files used by LuCI have permission 640 with this patch, most likely causing it to lack sufficient permissions to run.
Both worked fine up to this commit. Reverting ‘include/image-legacy.mk’ and ‘include/image-legacy.mk’ to the status of commit 6c154278 makes both work fine again.
This was found by running ‘git bisect’. Note that .config is generated with the following command before each recompile with
./scripts/config/conf --defconfig=config.seed Config.in
using the attached ‘config.seed’ file. Using Netgear WNDR4300 for testing.