From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jan 5 19:21:12 2015 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6621B16E for ; Mon, 5 Jan 2015 19:21:12 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 33F1B2D65 for ; Mon, 5 Jan 2015 19:21:12 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t05JLCGv018470 for ; Mon, 5 Jan 2015 19:21:12 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 196520] [Patch] dns/bind910 rc.d/named auto-chroot reenable Date: Mon, 05 Jan 2015 19:21:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: bugzilla.freebsd@omnilan.de X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mat@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jan 2015 19:21:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D196520 Bug ID: 196520 Summary: [Patch] dns/bind910 rc.d/named auto-chroot reenable Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: mat@FreeBSD.org Reporter: bugzilla.freebsd@omnilan.de Assignee: mat@FreeBSD.org Flags: maintainer-feedback?(mat@FreeBSD.org) Created attachment 151361 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D151361&action= =3Dedit auto-chroot merged back from base, mtree follows separately There was a lot of rumor about auto-chrooting for bind because out-of-the-b= ox chroot support was removed along with bind from base starting with FreeBSD-= 10, see https://lists.freebsd.org/pipermail/freebsd-stable/2013-December/076028.html I share the opinion of the majority =E2=80=93 it's a significant regression. So I hacked a quick back-merge from what I appreciated having had in base. It's meant to change as less as possible, and has been barely tested, but d= oes work well in my environment. It's most probably no long term solution, but a quick one for those looking= for the old behaviour we were used up to FreeBSD-10. All you have to add is named_chrootdir=3D"/var/named" to your /etc/rc.conf and make sure the directory you define does exist. I simply took the old rc.d-script and back-merged the routines with little matching. Inside chroot, %%PREFIX%% will be stripped, so your config is in /var/named/etc/namedb e.g. (not in /var/named/usr/local/etc/namedb!!!) Feel free to like/dislike/adapt/use/forget it ;-) For easier reading, I made two patches, especially because I'm unsure if it= 's a good idea to install BIND.chroot.dist into %%PREFIX%%/etc/mtree. There are countless other ways to do it, but like I mentioned, I wanted to make this addition minimal-invasive in port's perspective. --- Comment #1 from Bugzilla Automation --- Auto-assigned to maintainer mat@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.=