From owner-freebsd-questions@FreeBSD.ORG Mon Apr 3 22:34:03 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 56B0216A41F for ; Mon, 3 Apr 2006 22:34:03 +0000 (UTC) (envelope-from mistry.7@osu.edu) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C35B43D6E for ; Mon, 3 Apr 2006 22:33:45 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.100] (am-productions.biz [69.61.164.22]) (authenticated bits=0) by mail.united-ware.com (8.13.4/8.13.4) with ESMTP id k33Mm9jx018111 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Apr 2006 18:48:15 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-questions@freebsd.org Date: Mon, 3 Apr 2006 18:32:52 -0400 User-Agent: KMail/1.9.1 References: <44319F47.30605@donnex.net> In-Reply-To: <44319F47.30605@donnex.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1948028.LnxaXq3mGT"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200604031833.10774.mistry.7@osu.edu> X-Spam-Status: No, score=-7.5 required=5.0 tests=ALL_TRUSTED,BAYES_00, J_CHICKENPOX_55,MYFREEBSD2 autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on mail.united-ware.com X-Virus-Scanned: ClamAV 0.88/1370/Mon Apr 3 13:31:59 2006 on mail.united-ware.com X-Virus-Status: Clean Cc: Daniel Johansson Subject: Re: devfs rule: ioctl DEVFSIO_SAPPLY: No such process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 22:34:03 -0000 --nextPart1948028.LnxaXq3mGT Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 03 April 2006 18:18, Daniel Johansson wrote: > Hello.. > > I'm setting up a jail in FreeBSD 6.0. I've done that before in 4.x > but now it's a new box and newer version of FreeBSD. Everything > works fine except for the rules for my devfs mount. What I want to > do is to hide the devices that isn't necessary in my jail > environment like the disks etc. > > I've read the man files and some other guides online for this and > my understanding is that I should use devd to manipulate the devfs > mount and tell it to use rule set 4, as devfs.rules says is > suitable for jails. > > $ devfs -m /path/to/my/jail/dev/ rule -s 4 applyset > devfs rule: ioctl DEVFSIO_SAPPLY: No such process > > Am I doing something wrong or why do I get that error message? Any > tips or comments about how to fix this? > > If you replay please CC the mail to me as I'm not subscribed to > this mailing list. Assuming you've got everything setup in your rc.conf the following is=20 what I use for a basic jail with basic dev entries: jail_list=3D"myjailname" # myjailname jail ifconfig_vr0_alias0=3D"inet 192.168.1.60 netmask 255.255.255.255" jail_myjailname_hostname=3D"myjailname.example.org" jail_myjailname_ip=3D"192.168.1.32" jail_myjailname_rootdir=3D"/path/to/my/jail" jail_myjailname_devfs_enable=3D"YES" jail_myjailname_devfs_ruleset=3D"devfsrules_jail" =2D-=20 Anish Mistry --nextPart1948028.LnxaXq3mGT Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQBEMaKmxqA5ziudZT0RAoyiAJ41UYIhgZ8h7P/pOUUWQ4T1nG/6wQCcCOmN SLq9Hp1G10dlgPYrkynXlks= =TZFI -----END PGP SIGNATURE----- --nextPart1948028.LnxaXq3mGT--