From owner-freebsd-stable Mon Nov 26 2:45:33 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mailgate2.abacus.co.uk (mailgate2.abacus.co.uk [194.130.48.119]) by hub.freebsd.org (Postfix) with SMTP id 17FA437B416 for ; Mon, 26 Nov 2001 02:45:23 -0800 (PST) Received: (qmail 37954 invoked from network); 26 Nov 2001 10:45:21 -0000 Received: from unknown (HELO dp.abacus.co.uk) (194.130.48.111) by mailgate2.abacus.co.uk with SMTP; 26 Nov 2001 10:45:21 -0000 Message-ID: <3C021D40.C83C6186@dp.abacus.co.uk> Date: Mon, 26 Nov 2001 10:45:20 +0000 From: Antony T Curtis Reply-To: antony@abacus.co."uk" Organization: Abacus Polar PLC (UK) X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Robert Watson Cc: freebsd-stable@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: jail patch References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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. -- 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