mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-20 05:53:26 +00:00
Merge branch 'dev' of github.com:thibaudlabat/LuaJIT into dev
This commit is contained in:
commit
10cdd1b85f
@ -580,7 +580,7 @@ int init_seccomp()
|
|||||||
ALLOW(SYS_close),
|
ALLOW(SYS_close),
|
||||||
ALLOW(SYS_getrandom),
|
ALLOW(SYS_getrandom),
|
||||||
ALLOW(SYS_brk),
|
ALLOW(SYS_brk),
|
||||||
//ALLOW(SYS_openat),
|
ALLOW(SYS_openat),
|
||||||
ALLOW(SYS_newfstatat),
|
ALLOW(SYS_newfstatat),
|
||||||
ALLOW(SYS_ioctl),
|
ALLOW(SYS_ioctl),
|
||||||
ALLOW(SYS_futex),
|
ALLOW(SYS_futex),
|
||||||
@ -626,11 +626,8 @@ int do_something()
|
|||||||
|
|
||||||
return x+y;
|
return x+y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define C_FUNCTIONS_N 10
|
#define C_FUNCTIONS_N 10
|
||||||
|
|
||||||
struct global_var_t {
|
struct global_var_t {
|
||||||
@ -699,6 +696,9 @@ int main(int argc, char **argv)
|
|||||||
smain.argc = argc;
|
smain.argc = argc;
|
||||||
smain.argv = argv;
|
smain.argv = argv;
|
||||||
|
|
||||||
|
printf("Seccomps activated");
|
||||||
|
fflush(stdout);
|
||||||
|
|
||||||
init_seccomp();
|
init_seccomp();
|
||||||
status = lua_cpcall(L, pmain, NULL);
|
status = lua_cpcall(L, pmain, NULL);
|
||||||
report(L, status);
|
report(L, status);
|
||||||
|
Loading…
Reference in New Issue
Block a user