From owner-freebsd-questions@FreeBSD.ORG Sun Jan 25 11:35:17 2009 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 53F31106566B for ; Sun, 25 Jan 2009 11:35:17 +0000 (UTC) (envelope-from peter@vereshagin.org) Received: from mx1.skyriver.ru (ns1.skyriver.ru [89.108.82.27]) by mx1.freebsd.org (Postfix) with ESMTP id 0D6048FC23 for ; Sun, 25 Jan 2009 11:35:17 +0000 (UTC) (envelope-from peter@vereshagin.org) Received: from localhost (zz217-113-115-181.tlt.ru [217.113.115.181]) by mx1.skyriver.ru (Postfix) with ESMTP id 693F15A8B for ; Sun, 25 Jan 2009 14:25:25 +0300 (MSK) Date: Sun, 25 Jan 2009 15:35:16 +0400 From: Peter Vereshagin To: freebsd-questions@freebsd.org Message-ID: <20090125113516.GB33731@screwed.box> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Organization: ' X-Face: 8T>{1owI$Byj]]a; ^G]kRf*dkq>E-3':F>4ODP[#X4s"dr?^b&2G@'3lukno]A1wvJ_L (~u 6>I2ra/<,j1%@C[LN=>p#_}RIV+#:KTszp-X$bQOj,K Subject: jail init, but another question 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: Sun, 25 Jan 2009 11:35:17 -0000 Hello, I always try to set up the devfs ruleset in rc.conf. So my question is about this in /etc/defaults/rc.conf: === #jail_example_devfs_ruleset="ruleset_name" # devfs ruleset to apply to jail === It appears not to work in /etc/rc.conf without this rc.subr patch: === $ diff -u /etc/rc.subr /usr/src/etc/rc.subr --- /etc/rc.subr 2008-07-20 19:26:20.000000000 +0500 +++ /usr/src/etc/rc.subr 2008-05-12 12:29:03.000000000 +0500 @@ -1242,7 +1242,7 @@ devfs_set_ruleset() { local devdir rs _me - [ -n "$1" ] && eval rs=\$1 || rs= + [ -n "$1" ] && eval rs=\$$1 || rs= [ -n "$2" ] && devdir="-m "$2"" || devdir= _me="devfs_set_ruleset" === And, by far the "ruleset_name" does not work in favour of ruleset number. But I remember it did work on freebsd-5.4. 73! Peter -- http://vereshagin.org