Adding syscall to seccomp sandbox.

This commit is contained in:
definitepotato
2022-01-15 13:14:16 -05:00
parent ec07344a0b
commit 455403baaf

View File

@@ -54,6 +54,7 @@ pub fn init() -> Result<()> {
ctx.allow_syscall(Syscall::sched_yield)?;
ctx.allow_syscall(Syscall::setsockopt)?;
ctx.allow_syscall(Syscall::madvise)?;
ctx.allow_syscall(Syscall::rt_sigaction)?;
#[cfg(target_arch = "x86")]
ctx.allow_syscall(Syscall::time)?;
ctx.allow_syscall(Syscall::clock_gettime)?;