Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2017 15:25:02 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Alexander Zagrebin <alex@zagrebin.ru>, freebsd-net@freebsd.org
Subject:   Re: local_unbound, resolvconf, vpn
Message-ID:  <7b016084-adf9-2d9e-bb04-c6a964cd6a0f@FreeBSD.org>
In-Reply-To: <20171108151713.413d28c4@vm2.home.zagrebin.ru>
References:  <5689438f-6734-6b57-b700-d70ee2b7578a@FreeBSD.org> <20171108151713.413d28c4@vm2.home.zagrebin.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/11/2017 14:17, Alexander Zagrebin wrote:
> This message appears because you are using chroot.
> You have to edit /var/unbound/unbound.conf and add a trailing slash to
> value of the 'directory' parameter:

That did it!

> server:
>     ...
>     chroot: /var/unbound
>     directory: /var/unbound/
>     ...
> 
> When unbound uses chroot, it determines the directory name, that it will
> be use for chdir call, taking in account the value of 'chroot'
> parameter. If 'chroot' equals 'directory' the unbound will call
> chdir(''), which will cause an error.

Thank you very much for the advice and for the explanation behind it.

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7b016084-adf9-2d9e-bb04-c6a964cd6a0f>