mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-23 06:42:34 +00:00
seccomp: allow to compile with older toolchain
This commit is contained in:
parent
87a77c5932
commit
6a05a4f9f4
15
nfq/sec.c
15
nfq/sec.c
@ -25,7 +25,10 @@ static long blocked_syscalls[] = {
|
|||||||
#ifdef SYS_execv
|
#ifdef SYS_execv
|
||||||
SYS_execv,
|
SYS_execv,
|
||||||
#endif
|
#endif
|
||||||
SYS_execve,SYS_execveat,
|
SYS_execve,
|
||||||
|
#ifdef SYS_execveat
|
||||||
|
SYS_execveat,
|
||||||
|
#endif
|
||||||
#ifdef SYS_exec_with_loader
|
#ifdef SYS_exec_with_loader
|
||||||
SYS_exec_with_loader,
|
SYS_exec_with_loader,
|
||||||
#endif
|
#endif
|
||||||
@ -80,7 +83,10 @@ SYS_symlinkat,
|
|||||||
SYS_link,
|
SYS_link,
|
||||||
#endif
|
#endif
|
||||||
SYS_linkat,
|
SYS_linkat,
|
||||||
SYS_pkey_mprotect,SYS_mprotect,
|
#ifdef SYS_pkey_mprotect
|
||||||
|
SYS_pkey_mprotect,
|
||||||
|
#endif
|
||||||
|
SYS_mprotect,
|
||||||
SYS_truncate,
|
SYS_truncate,
|
||||||
#ifdef SYS_truncate64
|
#ifdef SYS_truncate64
|
||||||
SYS_truncate64,
|
SYS_truncate64,
|
||||||
@ -103,7 +109,10 @@ SYS_rmdir,
|
|||||||
#ifdef SYS_rename
|
#ifdef SYS_rename
|
||||||
SYS_rename,
|
SYS_rename,
|
||||||
#endif
|
#endif
|
||||||
SYS_renameat,SYS_renameat2
|
#ifdef SYS_renameat2
|
||||||
|
SYS_renameat2,
|
||||||
|
#endif
|
||||||
|
SYS_renameat
|
||||||
};
|
};
|
||||||
#define BLOCKED_SYSCALL_COUNT (sizeof(blocked_syscalls)/sizeof(*blocked_syscalls))
|
#define BLOCKED_SYSCALL_COUNT (sizeof(blocked_syscalls)/sizeof(*blocked_syscalls))
|
||||||
|
|
||||||
|
15
tpws/sec.c
15
tpws/sec.c
@ -25,7 +25,10 @@ static long blocked_syscalls[] = {
|
|||||||
#ifdef SYS_execv
|
#ifdef SYS_execv
|
||||||
SYS_execv,
|
SYS_execv,
|
||||||
#endif
|
#endif
|
||||||
SYS_execve,SYS_execveat,
|
SYS_execve,
|
||||||
|
#ifdef SYS_execveat
|
||||||
|
SYS_execveat,
|
||||||
|
#endif
|
||||||
#ifdef SYS_exec_with_loader
|
#ifdef SYS_exec_with_loader
|
||||||
SYS_exec_with_loader,
|
SYS_exec_with_loader,
|
||||||
#endif
|
#endif
|
||||||
@ -80,7 +83,10 @@ SYS_symlinkat,
|
|||||||
SYS_link,
|
SYS_link,
|
||||||
#endif
|
#endif
|
||||||
SYS_linkat,
|
SYS_linkat,
|
||||||
SYS_pkey_mprotect,SYS_mprotect,
|
#ifdef SYS_pkey_mprotect
|
||||||
|
SYS_pkey_mprotect,
|
||||||
|
#endif
|
||||||
|
SYS_mprotect,
|
||||||
SYS_truncate,
|
SYS_truncate,
|
||||||
#ifdef SYS_truncate64
|
#ifdef SYS_truncate64
|
||||||
SYS_truncate64,
|
SYS_truncate64,
|
||||||
@ -103,7 +109,10 @@ SYS_rmdir,
|
|||||||
#ifdef SYS_rename
|
#ifdef SYS_rename
|
||||||
SYS_rename,
|
SYS_rename,
|
||||||
#endif
|
#endif
|
||||||
SYS_renameat,SYS_renameat2
|
#ifdef SYS_renameat2
|
||||||
|
SYS_renameat2,
|
||||||
|
#endif
|
||||||
|
SYS_renameat
|
||||||
};
|
};
|
||||||
#define BLOCKED_SYSCALL_COUNT (sizeof(blocked_syscalls)/sizeof(*blocked_syscalls))
|
#define BLOCKED_SYSCALL_COUNT (sizeof(blocked_syscalls)/sizeof(*blocked_syscalls))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user