From owner-freebsd-questions@FreeBSD.ORG Sat Apr 29 01:25:07 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFD7816A402 for ; Sat, 29 Apr 2006 01:25:07 +0000 (UTC) (envelope-from gibblertron@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DAA943D45 for ; Sat, 29 Apr 2006 01:25:06 +0000 (GMT) (envelope-from gibblertron@gmail.com) Received: by nproxy.gmail.com with SMTP id m18so243870nfc for ; Fri, 28 Apr 2006 18:25:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=cac3rkT0jipSKYkcgFMa7lsG2Rq/W/4OdQ29QfGShnzfmJ4Vf0a5/yptUKep0ML/REJ2UIByVa4Qvz8VvMXJHnjXogo3i85CaAw6oOtTvTcPl9QuqarqZZjUt/5yfH4zxoacZwPnOWmtMgDw3tlKKMsKreQLwYTQxBsvOgj1NcY= Received: by 10.48.12.19 with SMTP id 19mr6339287nfl; Fri, 28 Apr 2006 17:57:04 -0700 (PDT) Received: by 10.48.238.12 with HTTP; Fri, 28 Apr 2006 17:57:04 -0700 (PDT) Message-ID: Date: Fri, 28 Apr 2006 17:57:04 -0700 From: patrick To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: BIND inside a jail on FreeBSD 6.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2006 01:25:07 -0000 I'm trying to run BIND inside a jail on FreeBSD 6.0, and I'm encountering the following problem: [root@jail /var/named]# /etc/rc.d/named start mount_devfs: Operation not permitted /etc/rc.d/named: WARNING: devfs_domount(): Unable to mount devfs on /var/named/dev devfs rule: ioctl DEVFSIO_RAPPLY: Operation not permitted devfs rule: ioctl DEVFSIO_RAPPLY: Operation not permitted Starting named. And then it doesn't start... (I realize that BIND already runs in a chroot'd environment, but I'm running a second copy of BIND on an existing development server as a secondary test environment.) The problem looks like it originates in /etc/rc.d/named: # Mount a devfs in the chroot directory if needed # umount ${named_chrootdir}/dev 2>/dev/null devfs_domount ${named_chrootdir}/dev devfsrules_hide_all devfs -m ${named_chrootdir}/dev rule apply path null unhide devfs -m ${named_chrootdir}/dev rule apply path random unhide I tried mounting the devfs outside the jail to the jail's /var/named/dev, and then commenting out these lines above, but named will still not start. Does anyone have any suggestions? Thanks, Patrick