From owner-freebsd-questions@FreeBSD.ORG Tue Feb 8 17:47:21 2005 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 8770916A4CE for ; Tue, 8 Feb 2005 17:47:21 +0000 (GMT) Received: from hobbiton.shire.net (hobbiton.shire.net [166.70.252.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E93F43D2F for ; Tue, 8 Feb 2005 17:47:21 +0000 (GMT) (envelope-from chad@shire.net) Received: from [67.161.222.227] (helo=[192.168.99.68]) by hobbiton.shire.net with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.43) id 1CyZSI-000LeP-5C; Tue, 08 Feb 2005 10:47:19 -0700 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v619) Message-Id: <7944EB9F-79F9-11D9-B134-000D933E3CEC@shire.net> From: Chad Leigh -- Shire.Net LLC Date: Tue, 8 Feb 2005 10:47:17 -0700 To: r p X-Mailer: Apple Mail (2.619) X-SA-Exim-Connect-IP: 67.161.222.227 X-SA-Exim-Mail-From: chad@shire.net Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on hobbiton.shire.net X-Spam-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_50 autolearn=disabled version=3.0.0 X-Spam-Level: X-SA-Exim-Version: 4.1+cvs (built Mon, 23 Aug 2004 08:44:05 -0700) X-SA-Exim-Scanned: Yes (on hobbiton.shire.net) cc: freebsd-questions@freebsd.org Subject: Re: jail /dev 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: Tue, 08 Feb 2005 17:47:21 -0000 On Feb 8, 2005, at 8:32 AM, r p wrote: > Hi, > > I've set up a jail and am getting confused about setting up the > devices. The name of the jail is "jail" and it's directory is > "/usr/jail". I am using 5.3-Release. I have tried three methods, one > that works, two that don't. > > At the moment what I'm doing is "mount_devfs devfs /usr/jail/dev" then > going into the jail and deleting the devices that I (think) I don't > need/shouldn't have available. This works, but brings up the problem > that I don't know what devices I should leave in and which I > shouldn't. > > I tried adding the line "jail_jail_devfs_ruleset=4" along with other > suggested lines relating to jails to /etc/rc.conf, but this resulted > in an error message at bootup; "WARNING: devfs_set_ruleset: you must > specify a ruleset number". I am getting the number ("4") from the > "/etc/defaults/devfs.rules" file. I have the following in my jail startup script devfs_domount /local/2/hobbiton/dev devfsrules_jail devfs_set_ruleset devfsrules_jail /local/2/hobbiton/dev /sbin/devfs -m /local/2/hobbiton/dev rule -s 4 applyset I am not sure which one is working but one of them is :-) I will have to debug it some more and simplify this Chad