From owner-freebsd-questions@FreeBSD.ORG Tue Feb 8 15:32:32 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 911A416A4D0 for ; Tue, 8 Feb 2005 15:32:32 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CBDC43D3F for ; Tue, 8 Feb 2005 15:32:32 +0000 (GMT) (envelope-from freebsd99@gmail.com) Received: by wproxy.gmail.com with SMTP id 58so914969wri for ; Tue, 08 Feb 2005 07:32:31 -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=bNU5tRO0SudO5yKBX+EaGgFVKC6l9ddSUj+A2phZHSVJn3vIVYBB37TrR2h2vDAB/Od44nFFVFn3nyE50yqG6sBQOt5jvfTHy/wXFDR1syUQj9a8zJ9ZBv1pZlG8BhTGgxEOdCPvnB0QpOFbGwVUG4uZfAn7yUmwbRtNYuVhMi0= Received: by 10.54.56.15 with SMTP id e15mr10305wra; Tue, 08 Feb 2005 07:32:30 -0800 (PST) Received: by 10.54.2.60 with HTTP; Tue, 8 Feb 2005 07:32:30 -0800 (PST) Message-ID: Date: Tue, 8 Feb 2005 23:32:30 +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: 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: Tue, 08 Feb 2005 15:32:32 -0000 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 also read "man 8 dev" and tried the line " devfs -m /usr/jail/dev rule -s 4 applyset", which results in the error "devfs rule: ioctl DEVFSIO_SAPPLY: Inappropriate ioctl for device". I'm pretty sure in this case I'm just mistaken about how to use the command properly. So my questions are; 1) If I use my current method, the first, which devices should I leave in the jails /dev directory, and which should I delete? 2) Is the entry I tried in /etc/rc.conf in the second method correct, and if not, what should it be? 3) Is the command i tried in method three correct, and if not, what should it be?