mirror of
https://github.com/QingdaoU/Judger.git
synced 2024-12-29 00:11:41 +00:00
add extra syscalls to enable glibc init
This commit is contained in:
parent
3457a6c72a
commit
90856dc24f
6
runner.c
6
runner.c
@ -33,8 +33,10 @@ int run(struct config *config, struct result *result) {
|
||||
int return_code;
|
||||
int i;
|
||||
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)};
|
||||
SCMP_SYS(mmap), SCMP_SYS(mprotect), SCMP_SYS(munmap),
|
||||
SCMP_SYS(open), SCMP_SYS(arch_prctl), SCMP_SYS(brk),
|
||||
SCMP_SYS(access), SCMP_SYS(exit_group), SCMP_SYS(execve),
|
||||
SCMP_SYS(close)};
|
||||
|
||||
int syscalls_whitelist_length = sizeof(syscalls_whitelist) / sizeof(int);
|
||||
scmp_filter_ctx ctx = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user