freebsd-nq/share
Poul-Henning Kamp 75c1354190 This Implements the mumbled about "Jail" feature.
This is a seriously beefed up chroot kind of thing.  The process
is jailed along the same lines as a chroot does it, but with
additional tough restrictions imposed on what the superuser can do.

For all I know, it is safe to hand over the root bit inside a
prison to the customer living in that prison, this is what
it was developed for in fact:  "real virtual servers".

Each prison has an ip number associated with it, which all IP
communications will be coerced to use and each prison has its own
hostname.

Needless to say, you need more RAM this way, but the advantage is
that each customer can run their own particular version of apache
and not stomp on the toes of their neighbors.

It generally does what one would expect, but setting up a jail
still takes a little knowledge.

A few notes:

   I have no scripts for setting up a jail, don't ask me for them.

   The IP number should be an alias on one of the interfaces.

   mount a /proc in each jail, it will make ps more useable.

   /proc/<pid>/status tells the hostname of the prison for
   jailed processes.

   Quotas are only sensible if you have a mountpoint per prison.

   There are no privisions for stopping resource-hogging.

   Some "#ifdef INET" and similar may be missing (send patches!)

If somebody wants to take it from here and develop it into
more of a "virtual machine" they should be most welcome!

Tools, comments, patches & documentation most welcome.

Have fun...

Sponsored by:   http://www.rndassociates.com/
Run for almost a year by:       http://www.servetheweb.com/
1999-04-28 11:38:52 +00:00
..
colldef Correct a link problem with zh_TW.BIG5, make the display reasonable. 1999-04-10 12:22:25 +00:00
dict Note that we have removed some words form the original. 1998-12-25 00:56:09 +00:00
doc Represent the value 2**32 correctly in nroff. Previously, the troff 1999-04-05 01:53:39 +00:00
examples Specify the ssh command to use for a VPN inline. 1999-04-27 00:25:22 +00:00
info Print a human-readable warning and die if $INFODIR do not exist. 1998-05-09 22:15:19 +00:00
isdn Initial entry of ISDN4BSD into the FreeBSD tree. 1998-12-27 21:47:14 +00:00
man This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
me Year 2000 fixes 1997-12-20 22:31:37 +00:00
misc I've taken a pass through to add NetBSD and OpenBSD release dates, 1999-04-05 21:51:32 +00:00
mk s/lkm(4)/kld(4)/ 1999-04-23 20:53:34 +00:00
mklocale Added support for DIS 8859-15 based locales using patch 1998-12-14 02:59:15 +00:00
skel Nuked setting of crt here too. 1998-09-02 14:10:22 +00:00
syscons Fix <back quote>/<logical not>/<vertical bar> key. 1999-02-20 02:23:18 +00:00
tabset 444 -> ${SHAREMODE} 1998-01-03 14:13:48 +00:00
termcap lable -> label 1998-06-23 05:30:26 +00:00
timedef Correction of better display under chinese terminal. 1999-04-28 07:27:04 +00:00
zoneinfo Copy from vendor branch. This mainly undoes most of the backing out of 1999-02-08 06:29:10 +00:00
Makefile oops- I must have had a mangeld Entries 1998-12-28 21:51:49 +00:00
Makefile.inc Reverted part of previous change and improved formatting. Switching 1998-03-07 09:06:09 +00:00