Skip to content

Commit

Permalink
Add allowed SCMP clock_nanosleep
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy committed Oct 22, 2023
1 parent f5aa334 commit fc75496
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion judge-core/src/run/sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ fn get_default_rusage() -> rusage {
}
}

const DEFAULT_SCMP_WHITELIST: [&str; 27] = [
const DEFAULT_SCMP_WHITELIST: [&str; 28] = [
"read",
"fstat",
"mmap",
Expand Down Expand Up @@ -219,4 +219,5 @@ const DEFAULT_SCMP_WHITELIST: [&str; 27] = [
"prlimit64",
"futex",
"openat",
"clock_nanosleep"
];

0 comments on commit fc75496

Please sign in to comment.