freebsd-skq/sys/net
phk ca21a25f17 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
..
bpf_compat.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
bpf_filter.c Break long lines that I introduced in a previous commit. 1999-04-11 02:52:31 +00:00
bpf.c This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
bpf.h Change BPF_ALIGNMENT to long, necessary for correct alignment on Alpha. 1998-10-04 21:53:59 +00:00
bpfdesc.h I got another batch of suggestions for cosmetic changes from bde. 1998-11-11 10:56:07 +00:00
bridge.c Minor seatbelt tweak. The init code used to be splimp() protected, 1999-04-26 09:00:47 +00:00
bridge.h Bridging support. Wait for LINT to be updated before trying it. 1998-12-14 17:58:05 +00:00
bsd_comp.c Removed unused #includes. 1997-10-28 15:59:26 +00:00
ethernet.h Add preliminary support for IEEE 802.1Q VLAN tagging. It doesn't actually 1998-03-18 01:40:12 +00:00
fddi.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
hostcache.c Back out DIAGNOSTIC changes. 1998-02-06 12:14:30 +00:00
hostcache.h Last major round (Unless Bruce thinks of somthing :-) of malloc changes. 1997-10-12 20:26:33 +00:00
if_arp.h World, I'd like you to meet the first FreeBSD token Ring driver. 1999-02-20 11:18:00 +00:00
if_atm.h update ATM driver. (base version: midway.c 1.67 --> 1.68) 1998-07-29 05:35:16 +00:00
if_atmsubr.c Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
if_disc.c Make the use of 'disc' vs 'ds' as prefix consistent by making all 'disc'. 1998-12-14 01:59:16 +00:00
if_dl.h Submitted by: Larry Lile 1999-03-10 10:11:43 +00:00
if_ethersubr.c * Change sysctl from using linker_set to construct its tree using SLISTs. 1999-02-16 10:49:55 +00:00
if_fddisubr.c Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 22:42:27 +00:00
if_iso88025subr.c Submitted by: Larry Lile 1999-03-10 10:11:43 +00:00
if_llc.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
if_loop.c Set ifq_maxlen. 1999-02-20 21:03:53 +00:00
if_media.c Bring the 'new-bus' to the i386. This extensively changes the way the 1999-04-16 21:22:55 +00:00
if_media.h Bring the 'new-bus' to the i386. This extensively changes the way the 1999-04-16 21:22:55 +00:00
if_mib.c * Change sysctl from using linker_set to construct its tree using SLISTs. 1999-02-16 10:49:55 +00:00
if_mib.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
if_ppp.c Suser() simplification: 1999-04-27 11:18:52 +00:00
if_ppp.h Braino on my part.. a #define isn't a reference to a structure, so the 1997-10-18 09:02:39 +00:00
if_pppvar.h This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
if_sl.c Suser() simplification: 1999-04-27 11:18:52 +00:00
if_slvar.h Remove bogus #ifdef INET - SLIP doesn't compile without INET. 1997-12-20 16:44:51 +00:00
if_sppp.h rganize the various modes (CISCO/AUTO/DEMAND/LEASED) a little bit better, 1999-03-30 13:28:26 +00:00
if_spppsubr.c rganize the various modes (CISCO/AUTO/DEMAND/LEASED) a little bit better, 1999-03-30 13:28:26 +00:00
if_tun.c Suser() simplification: 1999-04-27 11:18:52 +00:00
if_tun.h Implement TUNSIFMODE and TUNSLMODE. 1999-03-24 21:20:12 +00:00
if_tunvar.h Implement TUNSIFMODE and TUNSLMODE. 1999-03-24 21:20:12 +00:00
if_types.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
if_var.h Bring the 'new-bus' to the i386. This extensively changes the way the 1999-04-16 21:22:55 +00:00
if_vlan_var.h Grrr... botched remote commit. Let's try this again: vlan updates, 1999-03-15 01:22:01 +00:00
if_vlan.c Add missing SYSCTL_DECL(_net_link); required by newer sysctl implementation. 1999-04-07 23:26:43 +00:00
if.c This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
if.h This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
iso88025.h Submitted by: Larry Lile 1999-03-10 10:11:43 +00:00
netisr.h Make NETISR_SET use a SYSINIT() rather than a linker set. 1999-04-26 08:52:16 +00:00
ppp_comp.h Merge ppp changes from 2.3.3 -> 2.3.5. I have spotted some more 1998-06-20 16:28:04 +00:00
ppp_deflate.c Zap what appears to be a relic of the older version of zlib. The other 1998-06-20 16:55:44 +00:00
ppp_defs.h Update kernel parts of pppd from 2.2.0 to 2.3.0. I've yet to look at the 1997-08-19 14:10:50 +00:00
ppp_tty.c Suser() simplification: 1999-04-27 11:18:52 +00:00
radix.c Temporary hack. The radix code shouldn't need this, it should be 1999-04-26 09:05:31 +00:00
radix.h Unstaticized rn_delete() and rn_lookup(). They are used in dark corners 1997-11-24 13:50:24 +00:00
raw_cb.c Added a used include (in ifdefed code). 1998-06-07 12:02:59 +00:00
raw_cb.h Added #include of <sys/queue.h> so that this file is more "self"-sufficent. 1998-02-03 22:19:35 +00:00
raw_usrreq.c Suser() simplification: 1999-04-27 11:18:52 +00:00
route.c Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 22:42:27 +00:00
route.h Added a forward struct declaration so that this file is less 1998-03-23 13:58:02 +00:00
rtsock.c This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
slcompress.c Cast pointers to uintptr_t/intptr_t instead of to u_long/long, 1998-07-15 02:32:35 +00:00
slcompress.h Merge ppp changes from 2.3.3 -> 2.3.5. I have spotted some more 1998-06-20 16:28:04 +00:00
slip.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
zlib.c Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 22:42:27 +00:00
zlib.h Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 22:42:27 +00:00