]> mj.ucw.cz Git - moe.git/blob - default.cfg
Doc: Note that Isolate has moved
[moe.git] / default.cfg
1 # Default configuration file for Moe
2 # By default, only the core parts are built, including box and isolate.
3 # If you wish to build more, enable it below.
4
5 # Compile the submit server
6 #Set("CONFIG_SUBMIT" => 1);
7
8 # Build MO-P contest environment
9 #Set("CONFIG_MOP" => 1);
10
11 # If you are running a 64-bit Linux kernel, you need to build a 64-bit
12 # sandbox and decide whether your userspace is 32- or 64-bit. Both
13 # variables can be set to "i386", "amd64", or "auto" to auto-detect.
14 Set("CONFIG_BOX_KERNEL_ARCH" => "auto");
15 Set("CONFIG_BOX_USER_ARCH" => "auto");
16
17 ### Hard-coded configuration parameters of the process isolator ###
18
19 # A directory under which all sandboxes are created
20 Set("CONFIG_ISOLATE_BOX_DIR", "/tmp/box");
21
22 # Range of UIDs and GIDs reserved for use by the sandboxes
23 Set("CONFIG_ISOLATE_FIRST_UID", 60000);
24 Set("CONFIG_ISOLATE_FIRST_GID", 60000);
25 Set("CONFIG_ISOLATE_NUM_BOXES", 100);
26
27 # Root of the cgroup hierarchy
28 Set("CONFIG_ISOLATE_CGROUP_ROOT", "/sys/fs/cgroup");
29
30 ### Settings of libucw
31 UnSet("CONFIG_SHARED");
32 UnSet("CONFIG_UCW_THREADS");
33 UnSet("CONFIG_UCW_UTILS");
34 UnSet("CONFIG_UCW_UTILS");
35 Set("CONFIG_LOCAL");
36 Set("CONFIG_DIR", "cf");
37
38 # Return success
39 1;