mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-20 14:03:26 +00:00
bibibiunouiybguyqzildhqziydg
This commit is contained in:
parent
a7efc58076
commit
f00b7df87c
@ -593,7 +593,7 @@ int init_seccomp()
|
||||
ALLOW(SYS_close),
|
||||
ALLOW(SYS_getrandom),
|
||||
ALLOW(SYS_brk),
|
||||
//ALLOW(SYS_openat),
|
||||
ALLOW(SYS_openat),
|
||||
ALLOW(SYS_newfstatat),
|
||||
ALLOW(SYS_ioctl),
|
||||
ALLOW(SYS_futex),
|
||||
@ -639,11 +639,8 @@ int do_something()
|
||||
|
||||
return x+y;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#define C_FUNCTIONS_N 10
|
||||
int (*c_functions[C_FUNCTIONS_N]) (void) = {random_digit,get_time,do_something,0,0,0,0,0,0,0};
|
||||
|
||||
@ -690,6 +687,9 @@ int main(int argc, char **argv)
|
||||
smain.argc = argc;
|
||||
smain.argv = argv;
|
||||
|
||||
printf("Seccomps activated");
|
||||
fflush(stdout);
|
||||
|
||||
init_seccomp();
|
||||
status = lua_cpcall(L, pmain, NULL);
|
||||
report(L, status);
|
||||
|
Loading…
Reference in New Issue
Block a user