From owner-freebsd-current@FreeBSD.ORG Fri Apr 30 05:13:42 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0B4616A4CE for ; Fri, 30 Apr 2004 05:13:42 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDF2043D48 for ; Fri, 30 Apr 2004 05:13:41 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.11/8.12.11) with ESMTP id i3UCDUb4005474; Fri, 30 Apr 2004 14:13:30 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: Eivind Olsen From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 30 Apr 2004 14:14:18 +0200." <348620619.1083334458@[10.122.7.143]> Date: Fri, 30 Apr 2004 14:13:30 +0200 Message-ID: <5473.1083327210@critter.freebsd.dk> cc: freebsd-current@freebsd.org Subject: Re: DEVFS in a chroot? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 12:13:42 -0000 In message <348620619.1083334458@[10.122.7.143]>, Eivind Olsen writes: >Hello. > >I'm running some processes in a chroot (not a jail) and I need to have a >small /dev in the chroot directory containing for example random and >urandom. >As I understand it, the recommended way to do this is to use devfs, but I'm >not sure how to go about doing that. > >Should I mount /var/chroot/dev as type devfs? Yes: mount -t devfs randomargument /var/chroot/dev >And I'd need to create some devfs-rulefile? Only if reducing the contents of that devfs instance. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.