chore: dedup pypy3

This commit is contained in:
Paul Pan 2024-01-30 12:39:55 +08:00
parent 8271551a88
commit ca5aa20715

View File

@ -3,29 +3,12 @@
#include <seccomp.h> #include <seccomp.h>
void setup_lang_pypy(scmp_filter_ctx ctx) { void setup_lang_pypy(scmp_filter_ctx ctx) {
// uname(63), mkdir(83), readlinkat(267) more than python3 void setup_lang_python(scmp_filter_ctx ctx);
setup_lang_python(ctx);
int white[] = { int white[] = {
SCMP_SYS(rt_sigaction), // 13
SCMP_SYS(rt_sigprocmask), // 14
SCMP_SYS(ioctl), // 16
SCMP_SYS(uname), // 63 SCMP_SYS(uname), // 63
SCMP_SYS(fcntl), // 72
SCMP_SYS(getcwd), // 79
SCMP_SYS(mkdir), // 83 SCMP_SYS(mkdir), // 83
SCMP_SYS(readlink), // 89
SCMP_SYS(sysinfo), // 99
SCMP_SYS(getuid), // 102
SCMP_SYS(getgid), // 104
SCMP_SYS(geteuid), // 107
SCMP_SYS(getegid), // 108
SCMP_SYS(gettid), // 186
SCMP_SYS(futex), // 202
SCMP_SYS(getdents64), // 217
SCMP_SYS(set_tid_address), // 218
SCMP_SYS(readlinkat), // 267 SCMP_SYS(readlinkat), // 267
SCMP_SYS(pselect6), // 270
SCMP_SYS(set_robust_list), // 273
SCMP_SYS(rseq), // 334
}; };
ADD_RULE_LIST(white, SCMP_ACT_ALLOW); ADD_RULE_LIST(white, SCMP_ACT_ALLOW);
} }