From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 26 06:35:23 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8566937B401; Thu, 26 Jun 2003 06:35:23 -0700 (PDT) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40FD943F75; Thu, 26 Jun 2003 06:35:20 -0700 (PDT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.9/8.12.9) with ESMTP id h5QDZDsp081813; Thu, 26 Jun 2003 17:35:13 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Thu, 26 Jun 2003 17:35:13 +0400 (MSD) From: Dmitry Morozovsky To: Robert Watson In-Reply-To: Message-ID: <20030626173142.B80636@woozle.rinet.ru> References: X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org Subject: Re: Mounting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2003 13:35:23 -0000 On Mon, 23 Jun 2003, Robert Watson wrote: RW> > Can nodev also be added to all above + /usr? RW> RW> nodev prevents opening specfs character devices, but doesn't prevent RW> opening fifos or UNIX domain sockets, so is generally fine for all file RW> systems except /dev. The common exceptions I bump into are: RW> RW> (1) If you have per-user chroots, make sure wherever their custom /dev is RW> isn't nodev. Maybe my experience would be useful for the community: I've successfully use mfs under 4.x for chroot/jailed environment, created via JDEV=/ar/J/j224/dev mount_mfs -s 256 -i 768 -o nosuid /dev/ad0s1b ${JDEV} > /dev/null 2>&1 cd ${JDEV} 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 *** ------------------------------------------------------------------------