freebsd-dev/sys/conf
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
..
defines Add some more defines that don't change the genericness of a file. 1995-05-11 20:21:23 +00:00
files This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
files.alpha Bring the 'new-bus' to the i386. This extensively changes the way the 1999-04-16 21:22:55 +00:00
files.i386 Bring the 'new-bus' to the i386. This extensively changes the way the 1999-04-16 21:22:55 +00:00
files.pc98 Commented out adv_isa.c. 1999-04-24 04:22:57 +00:00
kern.mk Fixed comment and whitespace lossage in recent commits. The -W flag 1999-01-29 10:57:18 +00:00
kmod.mk s/lkm(4)/kld(4)/ 1999-04-23 20:53:34 +00:00
ldscript.alpha Lots of changes, including: 1998-08-10 07:53:59 +00:00
ldscript.amd64 Increased kernel virtual address space to 1GB. NOTE: You MUST have fixed 1999-03-11 18:28:46 +00:00
ldscript.i386 Increased kernel virtual address space to 1GB. NOTE: You MUST have fixed 1999-03-11 18:28:46 +00:00
ldscript.powerpc Lots of changes, including: 1998-08-10 07:53:59 +00:00
majors Add cdev 120 as the audit device. 1999-03-21 21:53:09 +00:00
Makefile.alpha Bump configvers; when the updates to generic/lint get committed, the old 1999-04-24 21:38:50 +00:00
Makefile.i386 Bump configvers; when the updates to generic/lint get committed, the old 1999-04-24 21:38:50 +00:00
Makefile.pc98 Sync with sys/i386/conf/Makefile.i386 revision 1.148. 1999-04-25 04:04:24 +00:00
Makefile.powerpc Bump configvers; when the updates to generic/lint get committed, the old 1999-04-24 21:38:50 +00:00
newvers.sh This is now 4.0-current 1999-01-21 03:07:33 +00:00
nfsswapkernel.c Removed vestiges of config-time "argument processing" configuration. 1997-09-07 13:49:56 +00:00
NOTES De-quote where possible and minor tweaks. depends on a current config(8). 1999-04-24 21:45:44 +00:00
options Zap LKM option and support. Farewell old friend. 1999-04-19 14:19:52 +00:00
options.alpha Keyboard driver update in preparation for the USB keyboard driver. 1999-03-10 10:36:53 +00:00
options.i386 The fd options changed during new-bus. 1999-04-24 21:46:56 +00:00
options.pc98 Sync with sys/i386/conf/options.i386 revision 1.112. 1999-04-25 04:05:31 +00:00
param.c Allow setting MAXFILES in the kernel config. 1999-04-09 16:28:11 +00:00
systags.sh Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00