[FS#97] dnsmasq doesn't receive updated dns servers when running inside ujail

LEDE Bugs lede-bugs at lists.infradead.org
Sun Sep 4 10:17:10 PDT 2016


The following task has a new comment added:

FS#97 - dnsmasq doesn't receive updated dns servers when running inside ujail
User who did this - Etienne CHAMPETIER (champtar)

----------
Hi Daniel,
It's one of the limitations of bind mounts, what you see in the jail is the file with inode 3400 and never the one with inode 3897, because what you really changed is /tmp

There is 2 workarounds:
1) write to the file instead of replacing it with a new one (with mv/rename). With this option you loose the atomicity of the rename
2) bind mount the parent dir of the file, bind mouting /tmp is not a good idea but maybe you can move resolv.conf.auto in a dnsmasq dir
----------

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



More information about the lede-bugs mailing list