#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <errno.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include <sys/prctl.h>
#include <linux/unistd.h>
#include <linux/audit.h>
#include <linux/filter.h>
Go to the source code of this file.
◆ _GNU_SOURCE
◆ ALLOW_SYSCALL
#define ALLOW_SYSCALL |
( |
|
name | ) |
|
Value: BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_##name, 0, 1), \
◆ arch_nr
◆ ARCH_NR
◆ EXAMINE_SYSCALL
#define EXAMINE_SYSCALL BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_nr) |
◆ KILL_PROCESS
◆ PR_SET_NO_NEW_PRIVS
#define PR_SET_NO_NEW_PRIVS 38 |
◆ REG_SYSCALL
◆ SECCOMP_MODE_FILTER
#define SECCOMP_MODE_FILTER 2 /* uses user-supplied filter. */ |
◆ SECCOMP_RET_ALLOW
#define SECCOMP_RET_ALLOW 0x7fff0000U /* allow */ |
◆ SECCOMP_RET_KILL
#define SECCOMP_RET_KILL 0x00000000U /* kill the task immediately */ |
◆ SECCOMP_RET_TRAP
#define SECCOMP_RET_TRAP 0x00030000U /* disallow and force a SIGSYS */ |
◆ SYS_SECCOMP
◆ syscall_nr
◆ VALIDATE_ARCHITECTURE
#define VALIDATE_ARCHITECTURE |
Value: BPF_STMT(BPF_LD+BPF_W+BPF_ABS,
arch_nr), \
BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K,
ARCH_NR, 1, 0), \