Allow statx and lseek syscalls

This commit is contained in:
kpcyrd
2021-12-03 16:06:10 +01:00
parent 1f5ea402ea
commit aeba3f4574

View File

@@ -70,6 +70,10 @@ pub fn init() -> Result<()> {
ctx.allow_syscall(Syscall::getpeername)?;
ctx.allow_syscall(Syscall::gettimeofday)?;
ctx.allow_syscall(Syscall::membarrier)?;
ctx.allow_syscall(Syscall::statx)?;
ctx.allow_syscall(Syscall::lseek)?;
#[cfg(target_arch = "arm")]
ctx.allow_syscall(Syscall::_llseek)?;
ctx.set_action_for_syscall(Action::Errno(1), Syscall::openat)?;
#[cfg(not(target_arch = "aarch64"))]