Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2001 05:59:34 -0700
From:      Samuel J.Greear <dragonk@evilcode.net>
To:        antony@abacus.co."uk", Antony T Curtis <antony@dp.abacus.co.uk>, Robert Watson <rwatson@FreeBSD.ORG>
Cc:        freebsd-stable@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG
Subject:   Re: jail patch
Message-ID:  <20011126130246.C925C21338@ns1.infowest.com>
In-Reply-To: <3C021D40.C83C6186@dp.abacus.co.uk>
References:  <Pine.NEB.3.96L.1011125211141.74761G-100000@fledge.watson.org> <3C021D40.C83C6186@dp.abacus.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 26 November 2001 03:45 am, Antony T Curtis wrote:
> Robert Watson wrote:
> > On Sun, 25 Nov 2001, Gregory Neil Shapiro wrote:
>
> <snip>
>
> > In the jailng code, I allow jails to be identified using a name (other
> > than the hostname) when they are created, and that can later be used as a
> > handle for signalling.  Two of the concepts that are useful in jailng are
> > (1) the ability to identify jails and manage them from the outside more
> > easily, and (2) jailinit, which permits a jail to maintain a runlevel,
> > meaning that you don't have to be 'in' a jail in order to start an
> > orderly shutdown (as you can signal jailinit), not to mention introducing
> > the notion of an orderly shutdown :-).
>
> <snip>
>
> I currently make use of a hacked version of init which allows me to have
> a whole "system" in a jail - this allows me to telnet in to a jail and
> do a shutdown.
>
> The only downside is that many things expect init to be pid=1 but in the
> jail, this isn't true - I keep the pid of the init in a temporary file
> (ugly hack, a better "hack" would probably involve hacking the kernel
> sources so that the jailed pid is "1" and that when that process dies,
> the whole jail gets a kill -9.


http://www.jailbsd.net/tarballs/jailinit.rat.gz

This is a little something that I whipped up some time back, but haven't put
much effort into lately.


Sam

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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