From owner-freebsd-questions@FreeBSD.ORG Sat Apr 29 01:36:24 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 1415316A401 for ; Sat, 29 Apr 2006 01:36:24 +0000 (UTC) (envelope-from chad@shire.net) Received: from hobbiton.shire.net (mail.shire.net [166.70.252.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id B267443D4C for ; Sat, 29 Apr 2006 01:36:23 +0000 (GMT) (envelope-from chad@shire.net) Received: from [67.171.127.191] (helo=[192.168.99.68]) by hobbiton.shire.net with esmtpa (Exim 4.51) id 1FZeNi-0006cV-Bq; Fri, 28 Apr 2006 19:36:22 -0600 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v749.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: "Chad Leigh -- Shire.Net LLC" Date: Fri, 28 Apr 2006 19:36:22 -0600 To: patrick X-Mailer: Apple Mail (2.749.3) X-SA-Exim-Connect-IP: 67.171.127.191 X-SA-Exim-Mail-From: chad@shire.net X-SA-Exim-Scanned: No (on hobbiton.shire.net); SAEximRunCond expanded to false Cc: freebsd-questions@freebsd.org Subject: Re: 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:36:24 -0000 On Apr 28, 2006, at 6:57 PM, patrick wrote: > 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? mount a devfs into the jails /dev and you should be all set. I am running bind in a jail under fbsd 6 no problem and I did not have to do anything special except set up the jail according to man jail Chad > > Thanks, > > Patrick > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" --- Chad Leigh -- Shire.Net LLC Your Web App and Email hosting provider chad at shire.net