summaryrefslogtreecommitdiffstats
path: root/etc/security
diff options
context:
space:
mode:
authorroot <root@localhost>2012-12-30 16:05:36 +0330
committerMahrud Sayrafi <mahrud@eve>2012-12-30 05:33:01 -0800
commitb300254ee1f308c440d8e8d8129fb863b6ec9599 (patch)
tree13b4c0871e5ed92b517c002ab815da7f0fe5fbcc /etc/security
parent9cb5ecf6956115140521d74cea8b4191634842fd (diff)
downloadhellijudge-legacy.git-b300254ee1f308c440d8e8d8129fb863b6ec9599.tar.gz
hellijudge-legacy.git-b300254ee1f308c440d8e8d8129fb863b6ec9599.tar.xz
hellijudge-legacy.git-b300254ee1f308c440d8e8d8129fb863b6ec9599.zip
Making the legacy more usefulv0.9
Added a brief installation guide in README along with etc config file samples. Added a couple of useful start and kill scripts in utils folder. Added two sample problems (one normal one interactive) along with testers in utils folder.
Diffstat (limited to 'etc/security')
-rw-r--r--etc/security/chroot.conf6
-rw-r--r--etc/security/limits.d/judge.conf5
2 files changed, 11 insertions, 0 deletions
diff --git a/etc/security/chroot.conf b/etc/security/chroot.conf
new file mode 100644
index 0000000..0e2c5a1
--- /dev/null
+++ b/etc/security/chroot.conf
@@ -0,0 +1,6 @@
+# /etc/security/chroot.conf
+# format:
+# username_regex chroot_dir
+#matthew /home
+
+judge /mnt/jail
diff --git a/etc/security/limits.d/judge.conf b/etc/security/limits.d/judge.conf
new file mode 100644
index 0000000..fab4281
--- /dev/null
+++ b/etc/security/limits.d/judge.conf
@@ -0,0 +1,5 @@
+# Default limits for user judge
+
+@judge - core 0
+@judge - nproc 1
+@judge - as 524288