Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2003 16:22:31 +0200
From:      Pawel Jakub Dawidek <nick@garage.freebsd.pl>
To:        Mike Barcroft <mike@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
Message-ID:  <20030409142231.GX1280@garage.freebsd.pl>
In-Reply-To: <20030408225808.A16782@espresso.bsdmike.org>
References:  <200304090304.h3934Csu028105@repoman.freebsd.org> <20030408225808.A16782@espresso.bsdmike.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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