freebsd-nq/lib/libc
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
..
alpha Add wrappers for pread and pwrite syscalls. 1999-04-04 21:46:24 +00:00
amd64 Add wrappers for pread and pwrite syscalls. 1999-04-04 21:46:24 +00:00
compat-43 Add missing period. We don't allow maternity leaves. 1998-07-29 05:13:39 +00:00
db Replace memory leaking instances of realloc with non-leaking reallocf. 1998-09-16 04:17:47 +00:00
gen Add missing strings. 1999-04-24 18:28:24 +00:00
gmon Change a test for NETBSD_SYSCALLS to __alpha__. We're not ready to 1998-09-05 07:57:43 +00:00
i386 Add wrappers for pread and pwrite syscalls. 1999-04-04 21:46:24 +00:00
include Implement compile time debug support for spinlocks. 1998-06-09 08:28:49 +00:00
locale More egcs warning fixes: 1999-04-25 22:29:30 +00:00
mips Bring in initial libc support for mips. These files were taken from 1999-03-03 07:06:17 +00:00
mipseb Fix all the mipseb Makefiles. They were broken when I checked them in 1999-04-22 07:16:11 +00:00
mipsel Fix all the mipseb Makefiles. They were broken when I checked them in 1999-04-22 07:16:11 +00:00
net Mention that getservbyport requires its port parameter to be in 1999-03-02 02:34:23 +00:00
nls Provide meaningful errno value on error return 1998-07-14 18:27:43 +00:00
quad - Fix modulo bug that was masked by the correct code in libgcc.a which is 1998-11-30 20:25:37 +00:00
regex Replace memory leaking instances of realloc with non-leaking reallocf. 1998-09-16 04:17:47 +00:00
rpc Document type for 'req' argument to clnt_control. 1999-01-31 16:13:25 +00:00
stdio Various language and style concerns fixed. 1999-04-09 18:26:46 +00:00
stdlib Disable the "Hint" option in phkmalloc as default. Recent VM system 1999-03-28 14:16:05 +00:00
stdtime Re-fixed to start at 1969 per the actual Posix requirement. Also 1999-04-25 07:28:39 +00:00
string More egcs warning fixes: 1999-04-25 22:29:30 +00:00
sys This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
xdr Add support for the RPC 64-bit integer type ``hyper''. 1998-09-08 17:33:12 +00:00
yp Fixed the usual missing dependencies on headers generated by rpcgen. 1998-05-09 15:10:53 +00:00
Makefile Change i386 in a few paths to ${MACHINE} to support MACHINE=pc98. 1998-09-09 11:22:28 +00:00
Makefile.inc Define empty variables in case no names are added to them. This avoids 1998-03-09 06:21:41 +00:00