Date: Mon, 10 May 2004 18:42:17 +0400 (MSD) From: Dmitry Morozovsky <marck@rinet.ru> To: Tim Robbins <tjr@freebsd.org> Cc: Volker Stolz <vs@freebsd.org> Subject: Re: nullfs-autopsy after crash Message-ID: <20040510183607.V60519@woozle.rinet.ru> In-Reply-To: <20040510092015.GA29281@cat.robbins.dropbear.id.au> References: <20040510070010.GA587@i2.informatik.rwth-aachen.de> <20040510092015.GA29281@cat.robbins.dropbear.id.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 10 May 2004, Tim Robbins wrote: TR> > /bin on /usr/tmp/jail/bin (null, local, read-only) TR> > /sbin on /usr/tmp/jail/sbin (null, local, read-only) TR> > /etc on /usr/tmp/jail/etc (null, local, read-only) TR> > /dev on /usr/tmp/jail/dev (null, local, read-only) TR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TR> TR> Accessing special (non-directory, non-regular) files through nullfs TR> is known to cause panics. You'll need to create a dev directory TR> for each jail and populate it with makedev. ... and it seems appropriate for me to do this via mfs like JDIR=/ar/J/j224 mount_mfs -s 256 -i 768 -o nosuid swap ${JDIR}/dev > /dev/null 2>&1 # XXX mfs use 1777 mode so clean this up chmod 755 ${JDIR}/dev rm -rf ${JDIR}/dev/ >/dev/null 2>&1 cd ${JDIR}/dev sh /dev/MAKEDEV std pty0 rm mem kmem pci io klog console ln -sf null mem ln -sf null kmem ln -sf null console Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040510183607.V60519>