Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Jan 2015 19:21:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 196520] [Patch] dns/bind910 rc.d/named auto-chroot reenable
Message-ID:  <bug-196520-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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 <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer mat@FreeBSD.org

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196520-13>