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

Pawel Jakub Dawidek nick at garage.freebsd.pl
Wed Apr 9 07:22:28 PDT 2003


On Tue, Apr 08, 2003 at 10:58:08PM -0400, Mike Barcroft wrote:
+> Here's what it looks like in use:
+> 
+> %%%
+> 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?

-- 
Pawel Jakub Dawidek                       pawel at dawidek.net
UNIX Systems Programmer/Administrator     http://garage.freebsd.pl
Am I Evil? Yes, I Am!                     http://cerber.sourceforge.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20030409/2f2cd84c/attachment.bin


More information about the cvs-src mailing list