freebsd-nq/lib
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
..
compat Add libf2c.so.2 for our FORTRAN friends. 1999-04-22 19:10:48 +00:00
csu Remove some left-over stuff from NetBSD that we don't need. This 1999-04-24 02:07:17 +00:00
libalias Work around an egcs optimizer bug (i386). This should fix the active ftp 1999-04-21 21:28:01 +00:00
libatm libatm uses libmd; add it to the dependency list so that programs using 1998-10-11 04:41:43 +00:00
libbind Sigh, mkdep doesn't know about all the CFLAGS to pass during depend 1998-06-11 10:39:32 +00:00
libc This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
libc_r [ The author's description... ] 1999-03-23 05:07:56 +00:00
libcalendar .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq 1998-03-19 07:34:22 +00:00
libcam Fixed missing header in synopsis (<camlib.h> includes half the universe 1999-03-05 17:11:37 +00:00
libcom_err Remove definition of malloc and realloc. Instead include stdlib.h. 1998-09-11 05:39:08 +00:00
libcompat Correct typo. 1999-01-27 04:35:02 +00:00
libcrypt Simplified using new SYMLINKS macro, mainly to test this macro. The 1999-03-23 03:41:09 +00:00
libcurses Fix a curses bug exposed by the ":numbers" display of systat -iostat. 1998-10-12 16:32:32 +00:00
libdevstat Address our users in a civilized manner. (They may know better, but probably 1999-03-22 10:38:07 +00:00
libdisk More egcs warning fixes: 1999-04-25 22:29:30 +00:00
libedit Switch to using ".So" as the extension for PIC object files rather 1999-01-09 21:51:00 +00:00
libfetch Fixed prototype for fetchParseURL(). 1999-03-05 18:45:32 +00:00
libftpio Cause PORT commands to use the high IP port range. This makes fetch 1999-03-30 22:06:08 +00:00
libgnumalloc Don't install an elf libgnumalloc.so* in /usr/lib/compat.. No elf binaries 1998-10-11 04:18:30 +00:00
libio Add a simple library for accessing i/o ports and memory on the alpha. 1998-12-12 18:05:06 +00:00
libipx Fixed printf format errors. 1998-06-30 18:06:23 +00:00
libkse [ The author's description... ] 1999-03-23 05:07:56 +00:00
libkvm Oops, the previous log message should have been: 1999-04-10 03:49:43 +00:00
libm Eliminate nested comment warning. 1998-10-11 17:14:56 +00:00
libmd add more MLINKS 1999-03-02 22:53:24 +00:00
libmytinfo Fixed CLEANFILES. 1998-12-27 15:04:33 +00:00
libncurses More egcs warning fixes: 1999-04-25 22:29:30 +00:00
libopie libopie also depends on libmd. Programs using libopie shouldn't have to 1998-10-11 04:45:50 +00:00
libpam Fix bug that prevented accounts with empty passwords from logging 1999-04-06 19:48:53 +00:00
libpcap Fixed CLEANFILES. 1998-12-27 15:04:33 +00:00
libpthread [ The author's description... ] 1999-03-23 05:07:56 +00:00
libradius Allow an alternate to rad_send_request() for programs that 1999-02-05 11:23:44 +00:00
libresolv Don't build elf libresolv.so*, no elf freebsd binaries have used it ever. 1998-10-11 04:21:56 +00:00
librpcsvc Toss publickey.c in the attic and remove it from the Makefile. 1998-05-18 21:59:53 +00:00
libskey Fixed bitrot in synopsis (some const poisoning hadn't reached here). 1999-03-05 15:50:07 +00:00
libss Replace memory leaking instances of realloc with non-leaking reallocf. 1998-09-16 04:17:47 +00:00
libstand More egcs warning fixes: 1999-04-25 22:29:30 +00:00
libtacplus Initial import of TACACS+ client library donated by Juniper Networks, Inc. 1998-11-13 00:54:26 +00:00
libtelnet Old stuff laying around: Don't use a function called getstr(), that has 1998-12-16 06:04:29 +00:00
libtermcap Deal with /usr/lib/compat/aout, and that we've been installing things 1998-10-11 04:39:56 +00:00
libutil oops, add pwd!=NULL check to previous fix 1999-04-24 17:17:42 +00:00
libvgl .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq 1998-03-19 07:34:22 +00:00
libwrap Add data storage for two application-provided variables. 1999-04-03 03:29:14 +00:00
libxpg4 I have added the support for BIG5 encoding into libc/libxpg4/mklocale. 1998-08-15 12:51:49 +00:00
liby Don't install an elf liby.so[.2] in /usr/lib/compat. We have never had 1998-10-11 04:10:14 +00:00
libz Merge changes from vendor branch (1.1.1 -> 1.1.3) into mainline. 1999-01-10 09:53:51 +00:00
msun Disable building with alpha software completion options until we upgrade 1998-12-24 13:17:58 +00:00
ncurses/ncurses Renamed the generated include file keys.tries to keys.tries.h so 1998-03-20 16:50:08 +00:00
Makefile Turn off libf2c. Superseeded by EGCS's libg2c. 1999-04-18 09:50:58 +00:00
Makefile.inc