From owner-cvs-src@FreeBSD.ORG Wed Apr 9 07:22:28 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FBA537B401; Wed, 9 Apr 2003 07:22:28 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2814143F75; Wed, 9 Apr 2003 07:22:27 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id B46873ABB51; Wed, 9 Apr 2003 16:22:31 +0200 (CEST) Date: Wed, 9 Apr 2003 16:22:31 +0200 From: Pawel Jakub Dawidek To: Mike Barcroft Message-ID: <20030409142231.GX1280@garage.freebsd.pl> References: <200304090304.h3934Csu028105@repoman.freebsd.org> <20030408225808.A16782@espresso.bsdmike.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="xmHgJexE5s//CZci" Content-Disposition: inline In-Reply-To: <20030408225808.A16782@espresso.bsdmike.org> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/killall killall.1 killall.c src/usr.sbin Makefile src/usr.sbin/jail jail.8 jail.c src/usr.sbin/jexec Makefile jexec.8 jexec.c src/usr.sbin/jls Makefile jls.8 jls.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2003 14:22:28 -0000 --xmHgJexE5s//CZci Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 08, 2003 at 10:58:08PM -0400, Mike Barcroft wrote: +> Here's what it looks like in use: +>=20 +> %%% +> sol# jail /tmp/jail localhost 127.0.0.1 /bin/sh & +> [1] 19114 +> sol# jail /tmp/jail localhost 127.0.0.1 /bin/csh & +> [2] 19139 +> [1] + Suspended (tty input) jail /tmp/jail localhost 127.0.0.1 = /bin/sh +> sol# jls +> JID IP Address Hostname Path +> 2 127.0.0.1 localhost /tmp/jail +> 1 127.0.0.1 localhost /tmp/jail Nice work!! Global list with all prisons was really needed. But IMHO JID should be a string, not a number. For example we're running many jails at startup or somewhere else and because JID is set dynamicly there could be problems in writing scripts for handle jails (attaching processes to it or something). As we can see on your example, we aren't able to find out which jail was ran first (looking at PIDs isn't good idea:)). If JID will be a string there will be no such problems. What you think? --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --xmHgJexE5s//CZci Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPpQspz/PhmMH/Mf1AQE4QwP/Roi3omzta5ysCvb1CKb8gquMT/TWF3+1 hgvE6/faw2OCNbc7RbK174wIVGQXaWfmoofzB3hB3WltwQPm4I+P/6/ULnSLFsFa khB9qFjA3cZOCIjH2lT4WHKe0eMvwSQSZKoVtUra29RRwqNNNwLXHz0N+rVttPHS JY4SmhKU28g= =S9NV -----END PGP SIGNATURE----- --xmHgJexE5s//CZci--