<div dir="ltr"><div>it has something to do with openwrt's ujail (seccomp) I believe, probably to avoid symlink attacks? i.e. file works, symlink does not work.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 26, 2022 at 2:19 PM Eric Fahlgren <<a href="mailto:ericfahlgren@gmail.com">ericfahlgren@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:arial,sans-serif;color:rgb(0,0,0)">I can't imagine that dnsmasq would even know that the file it was opening was a symlink.  I'd suspect ownership or permissions.  The dnsmasq process in OpenWrt is run as the 'dnsmasq' user, so maybe 'chown dnsmasq:dnsmasq /etc/safe-search/enabled/*' or some variant would resolve your issue.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 25, 2022 at 7:05 PM Gordon Shawn <<a href="mailto:capcoding@gmail.com" target="_blank">capcoding@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">On the newest openwrt I installed 'safe-search' which has a few files under /etc/safe-search/available/ and they're symlinked to /etc/safe-search/enable/ by choice.<div><br></div><div>dnsmasq reports it failed to load those symlinks under enable/</div><div><br></div><div>if I remove the symlinks, and copy the real files over from available/, dnsmasq read them all and works fine.</div><div><br></div><div>can dnsmasq read addn-hosts files when they're symbolic links?</div><div><br></div><div>Thanks,</div><div>Gordon</div></div>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div>
</blockquote></div></div>