is reported, even though it slightly exceeds the limit. Fractional
numbers are again allowed.
+*-b, --box-id=*'id'::
+ When you run multiple sandboxes in parallel, you have to assign each unique
+ IDs to them by this option. See the discussion on UIDs in the INSTALLATION
+ section. The ID defaults to 0.
+
*-k, --stack=*'size'::
Limit process stack to 'size' kilobytes. By default, the whole address
space is available for the stack, but it is subject to the *--mem* limit.
Redirect standard error output to 'file'. The 'file' has to be accessible
inside the sandbox.
+*-c, --chdir=*'dir'::
+ Change directory to 'dir' before executing the program. This path must be
+ relative to the root of the sandbox.
+
*-p, --processes*[*=*'max']::
Permit the program to create up to 'max' processes and/or threads. Please
keep in mind that time and memory limit do not work with multiple processes
that this feature needs special system setup described in the REQUIREMENTS
section.
-*-c, --cg*::
+*--cg*::
Enable use of control groups.
*--cg-mem=*'size'::
If it finishes incorrectly, it returns 1.
All other return codes signal an internal error.
-REQUIREMENTS
+INSTALLATION
------------
Isolate depends on several advanced features of the Linux kernel. Please
make sure that your kernel supports
CPU accounting controller (+CONFIG_CGROUP_CPUACCT+), and
memory resource controller (+CONFIG_CGROUP_MEM_RES_CTLR+).
+Isolate is designed to run setuid to root. The sub-process inside the sandbox
+then switches to a non-privileged user ID (different for each *--box-id*).
+The range of UIDs available and several filesystem paths are embedded in the
+isolate's binary during compilation; please see +default.cfg+ in the source
+tree for description.
+
+Before you run isolate with control groups, you have to mount the control group
+filesystem. Most modern Linux distributions use libcgroup, which mounts a tmpfs
+at /sys/fs/cgroup, with individual controllers mounted within subdirectories.
+It is recommended to use your distribution's cgroup configuration support.
+Debian-based distributions have a choice of the cgroup-lite or cgroup-bin
+packages; Red Hat-based distributions provide the libcgroup package.
+
LICENSE
-------
Isolate was written by Martin Mares and Bernard Blackham.