mirror of
https://github.com/QingdaoU/Judger.git
synced 2024-12-29 00:11:41 +00:00
delete some syscalls
This commit is contained in:
parent
c979cd8e22
commit
b93995f3d2
@ -29,9 +29,9 @@
|
||||
#include <unistd.h> // readlink
|
||||
#include <seccomp.h>
|
||||
#include <stdio.h>
|
||||
int syscalls_whitelist[] = {SCMP_SYS(read), SCMP_SYS(write), SCMP_SYS(open), SCMP_SYS(close),
|
||||
SCMP_SYS(fstat), SCMP_SYS(mmap), SCMP_SYS(mprotect), SCMP_SYS(munmap),
|
||||
SCMP_SYS(brk), SCMP_SYS(access), SCMP_SYS(exit_group), SCMP_SYS(arch_prctl)};
|
||||
int syscalls_whitelist[] = {SCMP_SYS(read), SCMP_SYS(write), SCMP_SYS(fstat),
|
||||
SCMP_SYS(mmap), SCMP_SYS(mprotect), SCMP_SYS(munmap),
|
||||
SCMP_SYS(brk), SCMP_SYS(access), SCMP_SYS(exit_group)};
|
||||
typedef int (*main_t)(int, char **, char **);
|
||||
|
||||
#ifndef __unbounded
|
||||
|
Loading…
Reference in New Issue
Block a user