Bugzilla – Bug 4195
Unbound fails to reload zones when using globing in include.
Last modified: 2018-10-22 11:18:31 CEST
Issue is quite simple. I have main Unbound configuration which loads conf files dynamically like this:
Everything works until you send SIGHUP (reload) to the unbound process. Then my local zones are not loaded at all. When I will restart Unbound, it's returning local zones defined under all files in /some/dir/*.conf. So:
and HUP works as well.
It looks like this issue is gone after setting chroot: "". So it's just silent failure when doing reload with chroot enabled.
This should actually work fine. It should process the chroot both for non-* and for normal filenames. Are some of the files really symbolic links? Symbolic links are not allowed to go outside of the chroot space. May be (suddenly) resolved inside the chroot after the chroot and thus point to a different location. On linux, mount --bind can be used. Or hard links. Or copies, with the file residing at the position in the chroot.
If there is some way for me to reproduce the issue, I would like to be able to do that to fix the bug; right now the code looks like it should work for globs in the include with chroot. What (shortened) config makes this happen?
Best regards, Wouter