Skip to content

Commit

Permalink
sandbox: Add some alternative syscalls
Browse files Browse the repository at this point in the history
Add some extra syscalls that are used on other arches:
 fstate: fstat64
 newfstatat: fstatat64
 mmap: mmap2

Signed-off-by: Alexander Larsson <[email protected]>
  • Loading branch information
alexlarsson committed Oct 12, 2023
1 parent fdd7bf5 commit 8a88bfa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/sandbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ static void do_seccomp_sandbox(void)
size_t i;
int syscalls[] = {
SCMP_SYS(brk), SCMP_SYS(close), SCMP_SYS(exit),
SCMP_SYS(exit_group), SCMP_SYS(fstat), SCMP_SYS(lseek),
SCMP_SYS(mmap), SCMP_SYS(mremap), SCMP_SYS(munmap),
SCMP_SYS(exit_group), SCMP_SYS(fstat), SCMP_SYS(fstat64),
SCMP_SYS(fstatat64), SCMP_SYS(lseek), SCMP_SYS(mmap),
SCMP_SYS(mmap2), SCMP_SYS(mremap), SCMP_SYS(munmap),
SCMP_SYS(newfstatat), SCMP_SYS(read), SCMP_SYS(readv),
SCMP_SYS(sysinfo), SCMP_SYS(write), SCMP_SYS(writev),
};
Expand Down

0 comments on commit 8a88bfa

Please sign in to comment.