From owner-freebsd-questions@FreeBSD.ORG Mon Mar 28 17:34:04 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A9951065673 for ; Mon, 28 Mar 2011 17:34:04 +0000 (UTC) (envelope-from holger@freyther.de) Received: from gandharva.secretlabs.de (gandharva.secretlabs.de [78.46.147.237]) by mx1.freebsd.org (Postfix) with ESMTP id E40AB8FC1C for ; Mon, 28 Mar 2011 17:34:03 +0000 (UTC) Received: from [192.168.0.101] (91-64-83-241-dynip.superkabel.de [91.64.83.241]) by gandharva.secretlabs.de (Postfix) with ESMTPA id 0941D1B10C09; Mon, 28 Mar 2011 17:16:26 +0000 (UTC) Message-ID: <4D90C264.3050906@freyther.de> Date: Mon, 28 Mar 2011 19:16:20 +0200 From: Holger Hans Peter Freyther User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: Adam Vande More References: In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Hierachical jails devfs and rc.conf 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, 28 Mar 2011 17:34:04 -0000 On 03/28/2011 07:06 PM, Adam Vande More wrote: > On Mon, Mar 28, 2011 at 10:14 AM, Holger Freyther > wrote: > > So really quick question. Is there a way to statically populate the dev tree > with the minimum of needed descriptors? A first try with mknod /jail/dev/null > c 0... did not seem to work. > > > http://www.freebsd.org/doc/handbook/jails-build.html The question is about hierarchical jails. Having jail_NAME_devfs_enable="YES" inside a jail is not working as devfs is not a jail friendly fs. So I mount devfs as part of the /etc/fstab.MYJAIL on 'root' but then by default the whole devfs will be visible to child jails. So my two questions are really: - In rc.conf is there a variable I can use to pass children.max=N to one of the jails? - Is there a way to have a 'default' devfs rule for certain mountpoints? E.g. can a rule be applied at mount time?