From 36d8cc3e92f1766eba4ff5c331341cc81c4afc3b Mon Sep 17 00:00:00 2001 From: virusdefender Date: Thu, 28 Mar 2019 10:48:55 +0800 Subject: [PATCH] fix cpp lang seccomp rules --- judge/languages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/languages.py b/judge/languages.py index 2769fcd6..35276a11 100644 --- a/judge/languages.py +++ b/judge/languages.py @@ -79,7 +79,7 @@ int main() { }, "run": { "command": "{exe_path}", - "seccomp_rule": "c_cpp", + "seccomp_rule": {ProblemIOMode.standard: "c_cpp", ProblemIOMode.file: "c_cpp_file_io"}, "env": default_env } }