1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/sys/netinet
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
..
libalias Work around an egcs optimizer bug (i386). This should fix the active ftp 1999-04-21 21:28:01 +00:00
fil.c Staticize some more. 1998-11-26 18:54:52 +00:00
icmp_var.h * Change sysctl from using linker_set to construct its tree using SLISTs. 1999-02-16 10:49:55 +00:00
if_atm.c update ATM driver. (base version: midway.c 1.67 --> 1.68) 1998-07-29 05:35:16 +00:00
if_atm.h
if_ether.c Better handling for ARP/source routing on Token Ring 1999-04-15 17:58:24 +00:00
if_ether.h
if_fddi.h
igmp_var.h Move kernel-only declaration inside #ifdef KERNEL section. 1999-03-06 04:51:41 +00:00
igmp.c Rename igmp's MALLOC; it doesn't have anything to do with multicast routing. 1999-01-18 01:56:31 +00:00
igmp.h
in_cksum.c
in_hostcache.c
in_hostcache.h
in_pcb.c This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
in_pcb.h This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
in_proto.c * Change sysctl from using linker_set to construct its tree using SLISTs. 1999-02-16 10:49:55 +00:00
in_rmx.c Converted the last instance of hzto() to tvtohz(). 1998-08-05 16:59:20 +00:00
in_systm.h
in_var.h * Change sysctl from using linker_set to construct its tree using SLISTs. 1999-02-16 10:49:55 +00:00
in.c Suser() simplification: 1999-04-27 11:18:52 +00:00
in.h This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
ip_auth.c Staticize some more. 1998-11-26 18:54:52 +00:00
ip_auth.h Made some disgusting ifdefs even more disgusting to enable the support 1998-08-15 21:51:53 +00:00
ip_compat.h
ip_divert.c Suser() simplification: 1999-04-27 11:18:52 +00:00
ip_dummynet.c Tidy up some stray / unused stuff in the IPFW package and friends. 1999-04-20 13:32:06 +00:00
ip_dummynet.h Tidy up some stray / unused stuff in the IPFW package and friends. 1999-04-20 13:32:06 +00:00
ip_fil.c Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
ip_fil.h
ip_flow.c Staticize. 1999-04-11 02:50:42 +00:00
ip_flow.h
ip_frag.c Staticize some more. 1998-11-26 18:54:52 +00:00
ip_frag.h
ip_ftp_pxy.c Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
ip_fw.c Make one pass through the firewall the default. 1999-04-26 14:57:24 +00:00
ip_fw.h Tidy up some stray / unused stuff in the IPFW package and friends. 1999-04-20 13:32:06 +00:00
ip_icmp.c When an incoming packet is reflected back as an ICMP reply, make sure we 1999-03-06 23:10:42 +00:00
ip_icmp.h Declare id_mask as a fixed-size type. 1998-07-13 11:01:03 +00:00
ip_input.c Tidy up some stray / unused stuff in the IPFW package and friends. 1999-04-20 13:32:06 +00:00
ip_log.c The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static 1998-12-07 21:58:50 +00:00
ip_mroute.c Use dynamic memory allocation instead of mbuf's for multicast routing 1999-01-18 02:06:59 +00:00
ip_mroute.h Use dynamic memory allocation instead of mbuf's for multicast routing 1999-01-18 02:06:59 +00:00
ip_nat.c Staticize some more. 1998-11-26 18:54:52 +00:00
ip_nat.h Made some disgusting ifdefs even more disgusting to enable the support 1998-08-15 21:51:53 +00:00
ip_output.c Tidy up some stray / unused stuff in the IPFW package and friends. 1999-04-20 13:32:06 +00:00
ip_proxy.c Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 22:42:27 +00:00
ip_proxy.h
ip_state.c Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 22:42:27 +00:00
ip_state.h
ip_var.h Re-implement tcp and ip fragment reassembly to not store pointers in the 1998-08-24 07:47:39 +00:00
ip.h
ipl.h
mlf_ipl.c s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/. 1999-04-28 10:54:24 +00:00
raw_ip.c Suser() simplification: 1999-04-27 11:18:52 +00:00
tcp_debug.c Fixed printf format errors. 1998-08-17 01:05:25 +00:00
tcp_debug.h
tcp_fsm.h Two cosmetic changes, one a typo and the other, a clarification. 1999-04-07 22:22:06 +00:00
tcp_input.c Use snd_nxt, not rcv_nxt, when calculating the ISS during TIME_WAIT. 1999-02-06 00:47:45 +00:00
tcp_output.c Two cosmetic changes, one a typo and the other, a clarification. 1999-04-07 22:22:06 +00:00
tcp_reass.c Use snd_nxt, not rcv_nxt, when calculating the ISS during TIME_WAIT. 1999-02-06 00:47:45 +00:00
tcp_seq.h
tcp_subr.c This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
tcp_timer.c
tcp_timer.h
tcp_timewait.c This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
tcp_usrreq.c This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
tcp_var.h * Change sysctl from using linker_set to construct its tree using SLISTs. 1999-02-16 10:49:55 +00:00
tcp.h Declare tcp_seq and tcp_cc as fixed-size types. Half fixed type 1998-07-13 11:09:52 +00:00
tcpip.h Dike out some obsolete defines which referenced ih_next and ih_prev from 1998-09-26 14:26:59 +00:00
udp_usrreq.c This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
udp_var.h * Change sysctl from using linker_set to construct its tree using SLISTs. 1999-02-16 10:49:55 +00:00
udp.h