From owner-freebsd-stable Mon Nov 26 5: 4: 7 2001 Delivered-To: freebsd-stable@freebsd.org Received: from ns1.infowest.com (ns1.infowest.com [204.17.177.10]) by hub.freebsd.org (Postfix) with ESMTP id 1E47037B425; Mon, 26 Nov 2001 05:03:59 -0800 (PST) Received: from there (208.186.108.99.dsl.infowest.net [208.186.108.99]) by ns1.infowest.com (Postfix) with SMTP id C925C21338; Mon, 26 Nov 2001 06:02:46 -0700 (MST) Content-Type: text/plain; charset="iso-8859-1" From: Samuel J.Greear Organization: GetMegabits, Inc. To: antony@abacus.co."uk", Antony T Curtis , Robert Watson Subject: Re: jail patch Date: Tue, 27 Nov 2001 05:59:34 -0700 X-Mailer: KMail [version 1.3] Cc: freebsd-stable@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG References: <3C021D40.C83C6186@dp.abacus.co.uk> In-Reply-To: <3C021D40.C83C6186@dp.abacus.co.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20011126130246.C925C21338@ns1.infowest.com> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday 26 November 2001 03:45 am, Antony T Curtis wrote: > Robert Watson wrote: > > On Sun, 25 Nov 2001, Gregory Neil Shapiro wrote: > > > > > 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 :-). > > > > 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