Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Nov 2001 10:45:20 +0000
From:      Antony T Curtis <antony@dp.abacus.co.uk>
To:        Robert Watson <rwatson@FreeBSD.ORG>
Cc:        freebsd-stable@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG
Subject:   Re: jail patch
Message-ID:  <3C021D40.C83C6186@dp.abacus.co.uk>
References:  <Pine.NEB.3.96L.1011125211141.74761G-100000@fledge.watson.org>

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

-- 
ANTONY T CURTIS                     Tel: +44 (1635) 36222
Abacus Polar Holdings Ltd           Fax: +44 (1635) 38670
> There is a green, multi-legged creature crawling on your shoulder.

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?3C021D40.C83C6186>