From owner-freebsd-questions@FreeBSD.ORG Wed May 12 22:08:35 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 844A916A4CE for ; Wed, 12 May 2004 22:08:35 -0700 (PDT) Received: from hobbiton.shire.net (hobbiton.shire.net [206.71.64.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27DDC43D48 for ; Wed, 12 May 2004 22:08:35 -0700 (PDT) (envelope-from chad@shire.net) Received: from [67.161.247.57] (helo=[192.168.99.66]) by hobbiton.shire.net with asmtp (TLSv1:RC4-SHA:128) (Exim 4.10) id 1BO8SQ-000JWm-00 for freebsd-questions@freebsd.org; Wed, 12 May 2004 23:08:34 -0600 Mime-Version: 1.0 (Apple Message framework v613) In-Reply-To: <7CAF4CAE-A469-11D8-A0B4-003065A70D30@shire.net> References: <8C161CA5-A45C-11D8-A0B4-003065A70D30@shire.net> <7CAF4CAE-A469-11D8-A0B4-003065A70D30@shire.net> Message-Id: <93C0BC0A-A49B-11D8-A0B4-003065A70D30@shire.net> From: "Chad Leigh -- Shire.Net LLC" Date: Wed, 12 May 2004 23:08:31 -0600 To: freebsd-questions@freebsd.org Questions X-Mailer: Apple Mail (2.613) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on hobbiton.shire.net X-Spam-Status: No, hits=-0.0 required=5.0 tests=BAYES_44 autolearn=no version=2.63 X-Spam-Level: Subject: Re: devfs and jails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2004 05:08:35 -0000 On May 12, 2004, at 5:09 PM, Chad Leigh -- Shire.Net LLC wrote: > > On May 12, 2004, at 3:37 PM, Chad Leigh -- Shire.Net LLC wrote: > >> Hi >> >> This is on 5.2-CURRENT >> >> I want to apply devfs rules to a jails /dev. I am starting my jails >> manually and not through rc.conf (directly -- I have written my own >> rc script to start my jails since I have a bunch of file system stuff >> like mounting some localhost nfs and some md device mounts to do as >> part of the launch). >> >> I noticed that /etc/defaults/devfs.rules has a default set of rules >> that one might use with a jail, so I am starting there. It appears >> that this is ruleset 4 >> > > Since I am running my stuff inside an rc.d style script, and I noticed > a bunch of devfs related routines in /etc/rc.subr I tried the > following > > devfs_rulesets_from_file /etc/defaults/devfs.rules > devfs_domount /jail/host/dev devfsrules_jail > > in my script. > I do not know if this is exactly correct but the following did work for me (anything less would not seem to apply the devfs rules) devfs_rulesets_from_file /etc/defaults/devfs.rules devfs_domount /jails/host/dev devfsrules_jail devfs_set_ruleset devfsrules_jail /jails/host/dev /sbin/devfs -m /jails/host/dev rule -s 4 applyset thanks best Chad