From fc754966c03ba00d691fe5e2c174ff2e4403a20e Mon Sep 17 00:00:00 2001 From: slhmy <1484836413@qq.com> Date: Sun, 22 Oct 2023 20:37:12 +0800 Subject: [PATCH] Add allowed SCMP `clock_nanosleep` --- judge-core/src/run/sandbox.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/judge-core/src/run/sandbox.rs b/judge-core/src/run/sandbox.rs index 2959107..2ba2c22 100644 --- a/judge-core/src/run/sandbox.rs +++ b/judge-core/src/run/sandbox.rs @@ -191,7 +191,7 @@ fn get_default_rusage() -> rusage { } } -const DEFAULT_SCMP_WHITELIST: [&str; 27] = [ +const DEFAULT_SCMP_WHITELIST: [&str; 28] = [ "read", "fstat", "mmap", @@ -219,4 +219,5 @@ const DEFAULT_SCMP_WHITELIST: [&str; 27] = [ "prlimit64", "futex", "openat", + "clock_nanosleep" ];