Re: BIND inside a jail on FreeBSD 6.0




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@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions- unsubscribe@xxxxxxxxxxx"

---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: BIND inside a jail on FreeBSD 6.0
    ... devfs rule: ioctl DEVFSIO_RAPPLY: Operation not permitted ... (I realize that BIND already runs in a chroot'd environment, ... I tried mounting the devfs outside the jail to the jail's ...
    (freebsd-questions)
  • BIND inside a jail on FreeBSD 6.0
    ... I'm trying to run BIND inside a jail on FreeBSD 6.0, ... devfs rule: ioctl DEVFSIO_RAPPLY: Operation not permitted ...
    (freebsd-questions)
  • Re: devfs creates unwanted devices in jail after ruleset applied
    ... I am running a DNS server in a jail and have setup a devfs mount in the ... devfs -m JAILDIR/dev rule -s 35 add path random unhide ...
    (freebsd-questions)
  • Re: Jails
    ... > I have recently completed a clean install of FreeBSD 5.1. ... > followed the instructions to the letter for creating a jail. ... you need to mount devfs i.e. ...
    (freebsd-questions)
  • devfs creates unwanted devices in jail after ruleset applied
    ... I am running a DNS server in a jail and have setup a devfs mount in the ... devfs -m JAILDIR/dev rule -s 35 add path random unhide ...
    (freebsd-questions)