Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 2009 15:35:16 +0400
From:      Peter Vereshagin <peter@vereshagin.org>
To:        freebsd-questions@freebsd.org
Subject:   jail init, but another question
Message-ID:  <20090125113516.GB33731@screwed.box>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090125113516.GB33731>