On Thu, Mar 13, 2003 at 12:45:24PM +0100, Poul-Henning Kamp wrote: > In message <[EMAIL PROTECTED]>, Andy writes: > >On Wed, Mar 12, 2003 at 12:18:08PM -0500, Hiten Pandya wrote: [...] > >On 5.0-RELEASE-p4 I have > >/usr/src/etc/MAKEDEV > >and i use it for making the devices in jails. > >Is there a jail devfs or is the way described in the > >jail(8) man page still the right(tm) one? > > See devfs(8)
After reading it it seems the answer is "no" there is no special jail devfs, but you can create your own rules for a jail. More informative on this subject was /usr/share/doc/papers/devfs.ascii.gz which i quote here: ----8<---- These behaviours will be controlled with mount options, but these have not yet been implemented because FreeBSD has run out of bitmap flags for mount options, and a new unlimited mount option implementation is still not in place at the time of writing. One mount option ``jaildevfs'', will restrict the contents of the DEVFS mount- point to the ``normal set'' of devices for a jail and automatically hide all future devices and make it impossible for a jailed root to un-hide hidden entries while letting an un-jailed root do so. ---->8---- OK. What a pity. So we have to create our own, based on "MAKEDEV jail" maybe: 100 path * hide 200 path tty* unhide 300 path random unhide 400 path zero unhide 500 path null unhide 600 path fd/* unhide 700 path mdctl unhide 800 path ptyp* unhide Now the problem is ptyp* and mdctl don't show up, even so they got unhidden. Also symlinking seems to require special actions: $ ln -s null mem $ echo mem* mem mem $ ls -la mem* ls: mem: No such file or directory ls: mem: No such file or directory Obviously some magick happens with hidden devices, so how can you make those links or don't we need them anymore? Andy To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message