From owner-freebsd-questions@FreeBSD.ORG Wed Feb 9 09:33:16 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 361B716A4CE for ; Wed, 9 Feb 2005 09:33:16 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id D115243D45 for ; Wed, 9 Feb 2005 09:33:15 +0000 (GMT) (envelope-from freebsd99@gmail.com) Received: by wproxy.gmail.com with SMTP id 58so1054670wri for ; Wed, 09 Feb 2005 01:33:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=FfgQEJEiXJTdzYAS8w3dZpIthKO6n1AJJpn7Xw4l7h8qM3epMyYDzjVL5mHHxLmsXdyjC5weMCNBXQEEtEdTrHugrSKGLblQ0JgbIV/ZZQ+dQZOFpEauwtFGGhdBHG3lpAy2ZKbkunmru4z7wkqwQ50bav3ihJ2yj+daqYvtlA4= Received: by 10.54.47.17 with SMTP id u17mr28249wru; Wed, 09 Feb 2005 01:33:15 -0800 (PST) Received: by 10.54.2.60 with HTTP; Wed, 9 Feb 2005 01:33:15 -0800 (PST) Message-ID: Date: Wed, 9 Feb 2005 17:33:15 +0800 From: r p To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: jail /dev X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: r p List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 09:33:16 -0000 On Tue, 8 Feb 2005 10:47:17 -0700, Chad Leigh -- Shire. Net LLC wrote: > > 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 Thanks for your reply. I put those lines in my jail startup script, substituting my own path to the jail, but 'devfs_domount" and 'devfs_set_ruleset' seem to be missing, and I still get the same error for the 'devfs -m ...' command; devfs_domount: not found devfs_set_ruleset: not found devfs rule: ioctl DEVFSIO_SAPPLY: Inappropriate ioctl for device I've searched my system and can't find 'devfs_domount' or 'devfs_set_ruleset'. Maybe you could attach a file showing what devices are created with these commands, and i'll just write a line to delete the uneeded devices in startup script. This is really frustrating me :) Richard > 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. >