-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdefault.cfg
38 lines (29 loc) · 1.08 KB
/
default.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Default configuration file for Moe
# By default, only the core parts are built, including box and isolate.
# If you wish to build more, enable it below.
# Compile the submit server
#Set("CONFIG_SUBMIT" => 1);
# Build MO-P contest environment
#Set("CONFIG_MOP" => 1);
# If you are running a 64-bit Linux kernel, you need to build a 64-bit
# sandbox and decide whether your userspace is 32- or 64-bit.
Set("CONFIG_BOX_KERNEL_AMD64" => 1);
#Set("CONFIG_BOX_USER_AMD64" => 1);
### Hard-coded configuration parameters of the process isolator ###
# A directory under which all sandboxes are created
Set("CONFIG_ISOLATE_BOX_DIR", "/tmp/box");
# Range of UIDs and GIDs reserved for use by the sandboxes
Set("CONFIG_ISOLATE_FIRST_UID", 60000);
Set("CONFIG_ISOLATE_FIRST_GID", 60000);
Set("CONFIG_ISOLATE_NUM_BOXES", 100);
# Root of the cgroup hierarchy
Set("CONFIG_ISOLATE_CGROUP_ROOT", "/sys/fs/cgroup");
### Settings of libucw
UnSet("CONFIG_SHARED");
UnSet("CONFIG_UCW_THREADS");
UnSet("CONFIG_UCW_UTILS");
UnSet("CONFIG_UCW_UTILS");
Set("CONFIG_LOCAL");
Set("CONFIG_DIR", "cf");
# Return success
1;