HardenedBSD/share/man/man9
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
..
at_exit.9
at_fork.9
at_shutdown.9
bios.9
boot.9
buf.9 Fix some spelling errors. 1999-02-01 22:55:54 +00:00
BUS_CONNECT_INTR.9
BUS_CREATE_INTR.9
bus_generic_attach.9
bus_generic_detach.9
bus_generic_map_intr.9
bus_generic_print_child.9 Fixed wrong function prototype(s) in synopsis. 1999-03-06 17:25:50 +00:00
bus_generic_read_ivar.9 Fixed bitrot in synopsis (u_long changed to uintptr_t for portability). 1999-03-06 17:21:14 +00:00
bus_generic_shutdown.9
BUS_PRINT_CHILD.9 Fixed wrong function prototype(s) in synopsis. 1999-03-06 17:25:50 +00:00
BUS_READ_IVAR.9 Fixed bitrot in synopsis (u_long changed to uintptr_t for portability). 1999-03-06 17:21:14 +00:00
cd.9 Change the worm(4) man page to note that there is no longer a worm(4) 1998-10-16 00:26:28 +00:00
copy.9
devclass_add_driver.9
devclass_find.9
devclass_get_device.9 Fixed wrong function prototype(s) in synopsis. 1999-03-06 17:25:50 +00:00
devclass_get_devices.9 Fixed C syntax error in synopsis. 1999-03-06 17:14:24 +00:00
devclass_get_maxunit.9
devclass_get_name.9
devclass_get_softc.9 Fixed wrong function prototype(s) in synopsis. 1999-03-06 17:25:50 +00:00
devclass.9 Fix some spelling errors. 1999-02-01 22:55:54 +00:00
devfs_add_devswf.9
devfs_link.9 Fixed bitrot in synopsis (devfs_link was renamed to devfs_makelink). 1999-03-06 17:37:20 +00:00
devfs_remove_dev.9
device_add_child.9
DEVICE_ATTACH.9
device_delete_child.9
DEVICE_DETACH.9 Fixed wrong function prototype(s) in synopsis. 1999-03-06 17:25:50 +00:00
device_enable.9
device_find_child.9 Fixed wrong function prototype(s) in synopsis. 1999-03-06 17:25:50 +00:00
device_get_devclass.9
device_get_driver.9
device_get_ivars.9
device_get_softc.9
device_get_state.9
device_get_unit.9
device_probe_and_attach.9
DEVICE_PROBE.9
device_set_desc.9
DEVICE_SHUTDOWN.9
device.9 Fix some spelling errors. 1999-02-01 22:55:54 +00:00
devstat.9 Fixed bitrot in synopsis (const poisoning hadn't reached here). 1999-03-06 17:10:15 +00:00
driver.9
fetch.9 Fixed bitrot in synopsis (fuword() and suword() changed to support alpha). 1999-03-06 17:04:18 +00:00
ifnet.9
inittodr.9
intro.9
kernacc.9
Makefile Document the flags and p parameters to VOP_LOCK and VOP_UNLOCK. Also, 1999-03-17 20:17:32 +00:00
malloc.9 Removed occurrences of consecutive repeated words (such as "the the"). 1999-02-12 02:12:08 +00:00
MD5.9
mi_switch.9
microseq.9 Fixed missing headers in synopsis. 1999-03-06 17:07:29 +00:00
namei.9 Fixed missing headers in synopsis. 1999-03-06 17:07:29 +00:00
panic.9
physio.9
posix4.9
psignal.9
resettodr.9
rtalloc.9
rtentry.9
sleep.9 Fix some spelling errors. 1999-02-01 22:55:54 +00:00
spl.9 Removed all `vector xxxintr' specifications. Interrupt handlers are now 1998-10-22 15:53:06 +00:00
store.9 Fixed bitrot in synopsis (fuword() and suword() changed to support alpha). 1999-03-06 17:04:18 +00:00
style.9 Slightly relax the requirements fro removing extra braces and parenthesis. 1999-01-30 04:17:14 +00:00
suser.9 This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
time.9
timeout.9
uio.9
VFS_FHTOVP.9
VFS_INIT.9
VFS_MOUNT.9
VFS_QUOTACTL.9
VFS_ROOT.9
VFS_START.9
VFS_STATFS.9
VFS_SYNC.9
VFS_UNMOUNT.9
VFS_VGET.9
VFS_VPTOFH.9
VFS.9
vget.9
vnode.9 Add a section on vnode types. Mostly based on information supplied by 1998-09-28 23:36:35 +00:00
VOP_ABORTOP.9
VOP_ACCESS.9
VOP_ADVLOCK.9
VOP_ATTRIB.9
VOP_BWRITE.9
VOP_CREATE.9
VOP_FSYNC.9
VOP_GETPAGES.9
VOP_INACTIVE.9
VOP_IOCTL.9
VOP_LINK.9 Clarify more of what VOP_LINK expects. 1999-02-13 07:56:49 +00:00
VOP_LOCK.9 Fixed bitrot in synopsis. 1999-03-26 02:11:59 +00:00
VOP_LOOKUP.9
VOP_MMAP.9
VOP_OPENCLOSE.9
VOP_PATHCONF.9
VOP_PRINT.9
VOP_RDWR.9
VOP_READDIR.9
VOP_READLINK.9
VOP_REALLOCBLKS.9
VOP_REMOVE.9
VOP_RENAME.9
VOP_STRATEGY.9
VOP_VPTOFH.9
vput.9
vref.9
vrele.9
vslock.9