From owner-freebsd-stable@FreeBSD.ORG Fri Dec 13 21:38:43 2013 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B3334390; Fri, 13 Dec 2013 21:38:43 +0000 (UTC) Received: from roadkill.tharned.org (roadkill.tharned.org [75.145.12.185]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 59B3E1020; Fri, 13 Dec 2013 21:38:43 +0000 (UTC) Received: from [192.168.1.2] (244.sub-75-240-0.myvzw.com [75.240.0.244]) (authenticated bits=0) by roadkill.tharned.org (8.14.7/8.14.7) with ESMTP id rBDLHN2A038446 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 Dec 2013 15:17:26 -0600 (CST) (envelope-from gcr+freebsd-stable@tharned.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tharned.org; s=2013; t=1386969448; bh=xIyosD+ITMJjPwmoXV58atYbOuukwpZF3lDgZMvXvjI=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=I6NoPoOplX6vtp82XtQp5C5MOP9Tvjb2SsAjygxNhLQD8efGOyecBTE17GRN/GDTI 2VvRPXuE8sYCwc22PI46AJ//TSwDfXls3q+BEd2HWcur6fvopO/Bylwz9CjmOrLhxC R48ljzCoIAYalzK1tWXsxW928sYPxlnTwTziJJMo= Date: Fri, 13 Dec 2013 15:17:20 -0600 (CST) From: Greg Rivers To: Erwin Lansing Subject: Re: BIND chroot environment in 10-RELEASE...gone? In-Reply-To: <20131209112232.GR29825@droso.dk> Message-ID: References: <529D9CC5.8060709@rancid.berkeley.edu> <20131204095855.GY29825@droso.dk> <20131205083044.GN29825@droso.dk> <20131209112232.GR29825@droso.dk> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (roadkill.tharned.org [75.145.12.185]); Fri, 13 Dec 2013 15:17:28 -0600 (CST) Cc: stable@freebsd.org, Michael Sinatra X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Dec 2013 21:38:43 -0000 On Mon, 9 Dec 2013, Erwin Lansing wrote: > On Thu, Dec 05, 2013 at 11:34:31AM -0600, Greg Rivers wrote: >> On Thu, 5 Dec 2013, Erwin Lansing wrote: >>> >>> Thanks Greg, and thanks for the feedback. I did make sure that the >>> chroot still is supported on existing 8 and 9 systems, so the move >>> will be another part in the upgrade procedure to a new major release >>> and lessen the pain a bit. Let me have another look into >>> reintroducing the chroot bits in a less complicated way. It may not >>> be exactly the same as before but hopefully can be done in a backwards >>> compatible way. >>> >> >> Thank you Erwin. Let me know if I can help in any way. >> > > Sorry for the delay. I've spent too much time already on this. The > problem is that there are several assumption to how the paths are formed > in both the ports Makefile (and thus things like pkg-plist and used to > generate the configuration files) and the rc script that sets up the > chroot. Fixing one, breaks the other, so some more magic is required. I > hacked up the original chroot code enough that it sets up the chroot, > copies in the confiruation files, etc. but then ends up that the > configuration files were generated on the assumption that is was a > normal port prefix and thus expect things to be in > /var/named/usr/local/etc/named/... which is of course a fine chroot, but > not compatible with the pre-10 setup. > > I think a complete rewrite is needed to do this right, for which I don't > have time over the next few days. The net/isc-dhcp*-server ports might > have some inspiration, though not sure how transferrable it is to bind. > I'd be happy to test and accept patches. > I'll look into it. Thanks. -- Greg