Allow clone3 syscall in sandbox (#235)
This commit is contained in:
@@ -77,6 +77,7 @@ pub fn init() -> Result<()> {
|
||||
ctx.allow_syscall(Syscall::lseek)?;
|
||||
#[cfg(target_arch = "arm")]
|
||||
ctx.allow_syscall(Syscall::_llseek)?;
|
||||
ctx.allow_syscall(Syscall::clone3)?;
|
||||
|
||||
ctx.set_action_for_syscall(Action::Errno(1), Syscall::openat)?;
|
||||
#[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))]
|
||||
|
||||
Reference in New Issue
Block a user