增强判题和 docker 安全性

This commit is contained in:
virusdefender
2015-09-25 15:05:17 +08:00
parent e3d3fa7eb4
commit 4ab1107627
2 changed files with 3 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ def judge(submission_id, time_limit, memory_limit, test_case_id):
command = "%s run --privileged --rm " \
"--link mysql " \
"-v %s:/var/judger/test_case/:ro " \
"-v %s:/var/judger/code/ " \
"-v %s:/var/judger/code/:ro " \
"-v %s:/var/judger/code/log/ " \
"--device /dev/null:/dev/null " \
"%s " \