Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2003 12:59:43 -0500
From:      "Scot W. Hetzel" <hetzels@westbend.net>
To:        "Doug Barton" <DougB@freebsd.org>
Cc:        FreeBSD-Current <freebsd-current@freebsd.org>
Subject:   Re: Enhancements to the new rc.d/jail script
Message-ID:  <001801c3082f$cbffa600$19fd2fd8@westbend.net>
References:  <200304200055.h3K0tHJB005595@WBIw009.westbend.net> <20030420140251.W631@znfgre.tberna.bet> <001301c30816$f55e5a50$13fd2fd8@Admin02> <20030421093940.L2827@znfgre.tberna.bet>

next in thread | previous in thread | raw e-mail | index | archive | help
From: "Doug Barton" <DougB@freebsd.org>
> On Mon, 21 Apr 2003, Scot W. Hetzel wrote:
>
> > If a sys admin defines ruleset 10 in /etc/rc.devfs, then either the 2
will
> > be merged or the rc.d/devfs ruleset will be overwritten (if "/sbin/devfs
> > rule -s 10 delset" is in /etc/rc.devfs).
>
> Thanks for the clarification. I think that this has enough foot-shooting
> potential that it should probably be hidden behind a knob in rc.conf.
>

What do you think of the following changes?

/etc/defaults/rc.conf
    :
    devfs_jail_ruleset_enable    # Enable Standard Jail ruleset
    devfs_jail_ruleset_num='666'  # Standard Jail ruleset number (change if
it conflicts with your rulesets)
                                              # Also change
jail_default_ruleset to match.
    :
    jail_default_ruleset='666'    # Default ruleset to apply to a jail if
devfs enabled and no ruleset specified.
    :

/etc/rc.d/devfs
    :
    # Standard Jail ruleset
    if checkyesno devfs_jail_ruleset_enable ; then
        /sbin/devfs -s ${devfs_jail_ruleset_num} delset
        :
        :
    fi
    :

We could also enable the Standard Jail ruleset when jail_enable is set.

Scot




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001801c3082f$cbffa600$19fd2fd8>