mirror of
https://github.com/QingdaoU/Judger.git
synced 2024-12-29 16:31:42 +00:00
完善general规则
This commit is contained in:
parent
7b61b9f9db
commit
b71625bedb
@ -6,7 +6,15 @@
|
||||
|
||||
int general_seccomp_rules(struct config *_config) {
|
||||
int syscalls_blacklist[] = {SCMP_SYS(socket), SCMP_SYS(clone),
|
||||
SCMP_SYS(fork)};
|
||||
SCMP_SYS(fork), SCMP_SYS(vfork),
|
||||
SCMP_SYS(writev), SCMP_SYS(kill),
|
||||
SCMP_SYS(chdir), SCMP_SYS(fchdir),
|
||||
SCMP_SYS(rename), SCMP_SYS(chmod),
|
||||
SCMP_SYS(fchmod), SCMP_SYS(chown),
|
||||
SCMP_SYS(fchown), SCMP_SYS(lchown),
|
||||
SCMP_SYS(setuid), SCMP_SYS(setgid),
|
||||
SCMP_SYS(capset), SCMP_SYS(mount),
|
||||
SCMP_SYS(sethostname)};
|
||||
int syscalls_blacklist_length = sizeof(syscalls_blacklist) / sizeof(int);
|
||||
scmp_filter_ctx ctx = NULL;
|
||||
// load seccomp rules
|
||||
|
Loading…
Reference in New Issue
Block a user