		     VE Overview
		     --------------
      (C) SWSoft Pte Ltd., 2000, http://www.sw.com.sg/

Virtual environments (VE's) are, from userspace point of view, a set of "OS
inside OS" - full-featured Linux box being multiplied inside the only hardware
unit. Each box could run inside virtually any Linux application (except ones
working with specific hardware), have separate file system root files and
effectively share resources of hardware (memory, CPU, disk, etc).

From kernel point of view, each VE is an isolated set of processes starting
from their own 'init'. Current release should properly implement namespace
separation for all userspace-visible objects, including restrictions for VE
superuser to access the global namespace and to change the global parameters.

VE is intergated with A. Savotchkin <saw@asp-linux.com> user beancounters
patch. It provides accounting and allows to configure limits for user's
consumption of exhaustible system resources. The most important resource
controlled by this patch is unswappable memory (either mlock'ed or used by
internal kernel structures and buffers). Per-process accounting doesn't
prevent malicious users from spawning a lot of resource-consuming processes.

Changed kernel subsystems:
- process table searching
     for_each_task is replaced with for_each_task_all and for_each_task_ve
     to ensure appropriate separation
     find_task_by_pid is replaced similarly with find_task_by_pid_ve and
     find_task_by_pid_all
- orphanes now connected to per environment init, i.e. first process spawned
  inside VE (by the way it also has PID=1)
- sys_reboot shutdowns VE gracefully
- device access additionally regulated on the per VE basis
- /proc is made readonly inside VE
- BSD pty driver is supplied for each VE
- only loopback and specified IP are accessible inside VE
     additional parameter is added to ip_route_output and some structures to
     allow VE based routing (being developed)
     lookup procedures of UNIX and IPV4 sockets have VE mark as a parameter
     added
- Console is not accessible from VE
- SysVIPC ids have been multiplexed
- sysctl is readonly inside VE, besides uts_name related ones
- SIGIO never sends signals across VE boundary
- chroot is secured

The following options should have status listed in order to receive
kernel with VE system enabled:
	CONFIG_VE			y
	CONFIG_VE_NET			y
	CONFIG_VE_IRQ			y
	CONFIG_VE_LINK			y
	CONFIG_VE_SIGIO			y
	CONFIG_UNIX98_PTYS		n
	CONFIG_IP_ALIAS			y
	CONFIG_USER_RESOURCE		y
	CONFIG_USER_RESOURCE_PROC	y

We recommend you to periodically check
    ftp://ftp.asplinux.com.sg/pub/aspcomplete/
for newer versions.

More information about the system is in the
    ftp://ftp.asplinux.com.sg/pub/aspcomplete/VE-HOWTO.html

Mirrors:
    ftp.asplinux.ru	(Russia)
    ftp.asp-linux.com	(USA)
    ftp.asplinux.co.kr	(Korea)
    
All information related user beancounters patch is in the
    http://www.asplinux.com.sg/install/ubpatch.shtml

Authors:
    Denis Lunev		<den@asp-linux.com>
    Yuri Pugrorodsky	<yur@asp-linux.com>
    Alexander Tormasov	<tor@asp-linux.com>
