diff --git a/judge/client.py b/judge/client.py index da871c2..ac6309d 100644 --- a/judge/client.py +++ b/judge/client.py @@ -91,7 +91,8 @@ class JudgeClient(object): out_file=os.path.join(self._judge_base_path, str(test_case_id) + ".out"), args=execute_command[1:], env=["PATH=" + os.environ["PATH"]], - use_sandbox=self._language["use_sandbox"]) + use_sandbox=self._language["use_sandbox"], + use_nobody=True) if run_result["flag"] == 0: output_md5, r = self._compare_output(test_case_id) if r: diff --git a/judge/compiler.py b/judge/compiler.py index f39a62d..f4fc955 100644 --- a/judge/compiler.py +++ b/judge/compiler.py @@ -20,7 +20,8 @@ def compile_(language_item, src_path, exe_path, judge_base_path): max_memory=2000000000, args=compile_args, env=["PATH=" + os.environ["PATH"]], - use_sandbox=False) + use_sandbox=False, + use_nobody=True) compile_output_handler = open(compiler_output_file) compile_output = compile_output_handler.read().strip()