X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=default.cfg;h=69fbd6cbf3130dceb3d7a8b42c704ddbb038c923;hb=4c4549c822cca499e0815170c41587badb6b2a0f;hp=749fa103533377ea45a48c4c00e177bf2545b57d;hpb=5eb325f067c58ce40f4676cb367c1881bd57d924;p=eval.git diff --git a/default.cfg b/default.cfg index 749fa10..69fbd6c 100644 --- a/default.cfg +++ b/default.cfg @@ -1,11 +1,39 @@ -# Default configuration file for MO-Eval +# 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); +#Set("CONFIG_SUBMIT" => 1); -# Settings of libucw +# 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. Both +# variables can be set to "i386", "amd64", or "auto" to auto-detect. +Set("CONFIG_BOX_KERNEL_ARCH" => "auto"); +Set("CONFIG_BOX_USER_ARCH" => "auto"); + +### 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;