Allow io_* syscalls.
Bug: 37916658 Bug: 31712568 Test: Use the syscalls, verify not seccomp blocked Change-Id: Iae19003cc5ff7e3d00cfc2237420f370fba7e289
This commit is contained in:
parent
03e9c498d4
commit
8dc4ef98ff
7 changed files with 251 additions and 246 deletions
|
@ -118,6 +118,11 @@ ssize_t copy_file_range(int fd_in, loff_t* off_in, int fd_out, loff_t* off_out,
|
|||
int mlock2(const void* addr, size_t len, int flags) all
|
||||
ssize_t preadv2(int fd, const struct iovec* iov, int iovcnt, off_t offset, int flags) all
|
||||
ssize_t pwritev2(int fd, const struct iovec* iov, int iovcnt, off_t offset, int flags) all
|
||||
int io_setup(unsigned nr, aio_context_t *ctxp) all
|
||||
int io_destroy(aio_context_t ctx) all
|
||||
int io_submit(aio_context_t ctx, long nr, struct iocb **iocbpp) all
|
||||
int io_getevents(aio_context_t ctx, long min_nr, long max_nr, struct io_event *events, struct timespec *timeout) all
|
||||
int io_cancel(aio_context_t ctx, struct iocb *, struct io_event *result) all
|
||||
|
||||
# b/37769298
|
||||
int dup2(int oldfd, int newfd) arm,x86,mips
|
||||
|
@ -126,4 +131,4 @@ int dup2(int oldfd, int newfd) arm,x86,mips
|
|||
int compat_select:_newselect(int n, unsigned long* inp, unsigned long* outp, unsigned long* exp, struct timeval* timeout) arm,x86,mips
|
||||
|
||||
# b/62090571
|
||||
int mkdir(const char *pathname, mode_t mode) arm,x86,mips
|
||||
int mkdir(const char *pathname, mode_t mode) arm,x86,mips
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
|
||||
#include "seccomp_bpfs.h"
|
||||
const sock_filter arm64_filter[] = {
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5, 0, 32),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 32),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 220, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 101, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 43, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 19, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 18, 27, 26), //setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|getcwd
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 18, 27, 26), //io_setup|io_destroy|io_submit|io_cancel|io_getevents|setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|getcwd
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 42, 26, 25), //eventfd2|epoll_create1|epoll_ctl|epoll_pwait|dup|dup3|fcntl|inotify_init1|inotify_add_watch|inotify_rm_watch|ioctl|ioprio_set|ioprio_get|flock|mknodat|mkdirat|unlinkat|symlinkat|linkat|renameat|umount2|mount|pivot_root
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 59, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 24, 23), //statfs|fstatfs|truncate|ftruncate|fallocate|faccessat|chdir|fchdir|chroot|fchmod|fchmodat|fchownat|fchown|openat|close
|
||||
|
|
|
@ -5,132 +5,130 @@
|
|||
|
||||
#include "seccomp_bpfs.h"
|
||||
const sock_filter arm_filter[] = {
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 128),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 126),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 150, 63, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 74, 31, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 41, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 24, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 10, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 8, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 7, 121, 120), //restart_syscall|exit|fork|read|write|open|close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 9, 120, 119), //creat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 7, 119, 118), //restart_syscall|exit|fork|read|write|open|close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 9, 118, 117), //creat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 19, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 13, 118, 117), //unlink|execve|chdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 22, 117, 116), //lseek|getpid|mount
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 13, 116, 115), //unlink|execve|chdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 22, 115, 114), //lseek|getpid|mount
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 33, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 26, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 25, 114, 113), //getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 27, 113, 112), //ptrace
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 25, 112, 111), //getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 27, 111, 110), //ptrace
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 36, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 34, 111, 110), //access
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 40, 110, 109), //sync|kill|rename|mkdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 34, 109, 108), //access
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 40, 108, 107), //sync|kill|rename|mkdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 57, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 51, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 45, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 44, 106, 105), //dup|pipe|times
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 46, 105, 104), //brk
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 44, 104, 103), //dup|pipe|times
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 46, 103, 102), //brk
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 54, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 53, 103, 102), //acct|umount2
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 56, 102, 101), //ioctl|fcntl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 53, 101, 100), //acct|umount2
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 56, 100, 99), //ioctl|fcntl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 63, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 60, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 99, 98), //setpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 62, 98, 97), //umask|chroot
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 97, 96), //setpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 62, 96, 95), //umask|chroot
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 66, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 65, 96, 95), //dup2|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 68, 95, 94), //setsid|sigaction
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 65, 94, 93), //dup2|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 68, 93, 92), //setsid|sigaction
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 114, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 91, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 85, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 77, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 76, 90, 89), //sethostname|setrlimit
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 80, 89, 88), //getrusage|gettimeofday|settimeofday
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 76, 88, 87), //sethostname|setrlimit
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 80, 87, 86), //getrusage|gettimeofday|settimeofday
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 88, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 86, 87, 86), //readlink
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 89, 86, 85), //reboot
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 86, 85, 84), //readlink
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 89, 84, 83), //reboot
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 96, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 94, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 93, 83, 82), //munmap|truncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 95, 82, 81), //fchmod
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 93, 81, 80), //munmap|truncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 95, 80, 79), //fchmod
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 103, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 98, 80, 79), //getpriority|setpriority
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 106, 79, 78), //syslog|setitimer|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 98, 78, 77), //getpriority|setpriority
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 106, 77, 76), //syslog|setitimer|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 128, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 118, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 116, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 115, 75, 74), //wait4
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 117, 74, 73), //sysinfo
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 115, 73, 72), //wait4
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 117, 72, 71), //sysinfo
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 124, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 123, 72, 71), //fsync|sigreturn|clone|setdomainname|uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 126, 71, 70), //adjtimex|mprotect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 123, 70, 69), //fsync|sigreturn|clone|setdomainname|uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 126, 69, 68), //adjtimex|mprotect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 136, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 131, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 130, 68, 67), //init_module|delete_module
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 134, 67, 66), //quotactl|getpgid|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 130, 66, 65), //init_module|delete_module
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 134, 65, 64), //quotactl|getpgid|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 138, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 137, 65, 64), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 149, 64, 63), //setfsuid|setfsgid|_llseek|getdents|_newselect|flock|msync|readv|writev|getsid|fdatasync
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 290, 31, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 137, 63, 62), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 149, 62, 61), //setfsuid|setfsgid|_llseek|getdents|_newselect|flock|msync|readv|writev|getsid|fdatasync
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 292, 31, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 219, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 190, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 172, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 168, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 164, 58, 57), //mlock|munlock|mlockall|munlockall|sched_setparam|sched_getparam|sched_setscheduler|sched_getscheduler|sched_yield|sched_get_priority_max|sched_get_priority_min|sched_rr_get_interval|nanosleep|mremap
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 169, 57, 56), //poll
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 164, 56, 55), //mlock|munlock|mlockall|munlockall|sched_setparam|sched_getparam|sched_setscheduler|sched_getscheduler|sched_yield|sched_get_priority_max|sched_get_priority_min|sched_rr_get_interval|nanosleep|mremap
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 169, 55, 54), //poll
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 183, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 182, 55, 54), //prctl|rt_sigreturn|rt_sigaction|rt_sigprocmask|rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigsuspend|pread64|pwrite64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 188, 54, 53), //getcwd|capget|capset|sigaltstack|sendfile
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 182, 53, 52), //prctl|rt_sigreturn|rt_sigaction|rt_sigprocmask|rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigsuspend|pread64|pwrite64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 188, 52, 51), //getcwd|capget|capset|sigaltstack|sendfile
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 213, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 199, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 198, 51, 50), //vfork|ugetrlimit|mmap2|truncate64|ftruncate64|stat64|lstat64|fstat64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 212, 50, 49), //getuid32|getgid32|geteuid32|getegid32|setreuid32|setregid32|getgroups32|setgroups32|fchown32|setresuid32|getresuid32|setresgid32|getresgid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 198, 49, 48), //vfork|ugetrlimit|mmap2|truncate64|ftruncate64|stat64|lstat64|fstat64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 212, 48, 47), //getuid32|getgid32|geteuid32|getegid32|setreuid32|setregid32|getgroups32|setgroups32|fchown32|setresuid32|getresuid32|setresgid32|getresgid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 217, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 215, 48, 47), //setuid32|setgid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 218, 47, 46), //getdents64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 256, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 248, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 215, 46, 45), //setuid32|setgid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 218, 45, 44), //getdents64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 270, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 250, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 224, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 222, 43, 42), //mincore|madvise|fcntl64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 243, 42, 41), //gettid|readahead|setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|tkill|sendfile64|futex|sched_setaffinity|sched_getaffinity
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 250, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 249, 40, 39), //exit_group
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 254, 39, 38), //epoll_create|epoll_ctl|epoll_wait|remap_file_pages
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 280, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 270, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 269, 36, 35), //set_tid_address|timer_create|timer_settime|timer_gettime|timer_getoverrun|timer_delete|clock_settime|clock_gettime|clock_getres|clock_nanosleep|statfs64|fstatfs64|tgkill
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 271, 35, 34), //arm_fadvise64_64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 286, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 222, 41, 40), //mincore|madvise|fcntl64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 249, 40, 39), //gettid|readahead|setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|tkill|sendfile64|futex|sched_setaffinity|sched_getaffinity|io_setup|io_destroy|io_getevents|io_submit|io_cancel|exit_group
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 256, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 254, 38, 37), //epoll_create|epoll_ctl|epoll_wait|remap_file_pages
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 269, 37, 36), //set_tid_address|timer_create|timer_settime|timer_gettime|timer_getoverrun|timer_delete|clock_settime|clock_gettime|clock_getres|clock_nanosleep|statfs64|fstatfs64|tgkill
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 286, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 280, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 271, 34, 33), //arm_fadvise64_64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 285, 33, 32), //waitid|socket|bind|connect|listen
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 289, 32, 31), //getsockname|getpeername|socketpair
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 350, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 327, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 316, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 292, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 291, 27, 26), //sendto
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 298, 26, 25), //recvfrom|shutdown|setsockopt|getsockopt|sendmsg|recvmsg
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 322, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 290, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 289, 31, 30), //getsockname|getpeername|socketpair
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 291, 30, 29), //sendto
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 369, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 340, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 322, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 316, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 298, 25, 24), //recvfrom|shutdown|setsockopt|getsockopt|sendmsg|recvmsg
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 319, 24, 23), //inotify_init|inotify_add_watch|inotify_rm_watch
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 326, 23, 22), //openat|mkdirat|mknodat|fchownat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 345, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 340, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 338, 20, 19), //fstatat64|unlinkat|renameat|linkat|symlinkat|readlinkat|fchmodat|faccessat|pselect6|ppoll|unshare
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 344, 19, 18), //splice|sync_file_range2|tee|vmsplice
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 348, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 327, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 326, 22, 21), //openat|mkdirat|mknodat|fchownat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 338, 21, 20), //fstatat64|unlinkat|renameat|linkat|symlinkat|readlinkat|fchmodat|faccessat|pselect6|ppoll|unshare
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 348, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 345, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 344, 18, 17), //splice|sync_file_range2|tee|vmsplice
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 347, 17, 16), //getcpu|epoll_pwait
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 349, 16, 15), //utimensat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 387, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 372, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 369, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 367, 12, 11), //timerfd_create|eventfd|fallocate|timerfd_settime|timerfd_gettime|signalfd4|eventfd2|epoll_create1|dup3|pipe2|inotify_init1|preadv|pwritev|rt_tgsigqueueinfo|perf_event_open|recvmmsg|accept4
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 370, 11, 10), //prlimit64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 380, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 350, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 349, 15, 14), //utimensat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 367, 14, 13), //timerfd_create|eventfd|fallocate|timerfd_settime|timerfd_gettime|signalfd4|eventfd2|epoll_create1|dup3|pipe2|inotify_init1|preadv|pwritev|rt_tgsigqueueinfo|perf_event_open|recvmmsg|accept4
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 390, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 380, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 372, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 370, 10, 9), //prlimit64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 378, 9, 8), //clock_adjtime|syncfs|sendmmsg|setns|process_vm_readv|process_vm_writev
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 386, 8, 7), //sched_setattr|sched_getattr|renameat2|seccomp|getrandom|memfd_create
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 983042, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 390, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 388, 5, 4), //execveat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 394, 4, 3), //mlock2|copy_file_range|preadv2|pwritev2
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 983045, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 387, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 386, 7, 6), //sched_setattr|sched_getattr|renameat2|seccomp|getrandom|memfd_create
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 388, 6, 5), //execveat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 983045, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 983042, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 394, 3, 2), //mlock2|copy_file_range|preadv2|pwritev2
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 983043, 2, 1), //__ARM_NR_cacheflush
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 983046, 1, 0), //__ARM_NR_set_tls
|
||||
BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW),
|
||||
|
|
|
@ -56,11 +56,11 @@ BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5168, 1, 0),
|
|||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5167, 36, 35), //reboot|sethostname|setdomainname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5170, 35, 34), //init_module|delete_module
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5173, 34, 33), //quotactl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5205, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5200, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5194, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5193, 31, 30), //gettid|readahead|setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|tkill
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5198, 30, 29), //futex|sched_setaffinity|sched_getaffinity|cacheflush
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5206, 29, 28), //exit_group
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5206, 29, 28), //io_setup|io_destroy|io_getevents|io_submit|io_cancel|exit_group
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5237, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5215, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5211, 1, 0),
|
||||
|
|
|
@ -5,111 +5,109 @@
|
|||
|
||||
#include "seccomp_bpfs.h"
|
||||
const sock_filter mips_filter[] = {
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4001, 0, 112),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4001, 0, 110),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4131, 55, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4063, 27, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4036, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4023, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4010, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4008, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4007, 105, 104), //exit|fork|read|write|open|close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4009, 104, 103), //creat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4007, 103, 102), //exit|fork|read|write|open|close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4009, 102, 101), //creat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4019, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4013, 102, 101), //unlink|execve|chdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4022, 101, 100), //lseek|getpid|mount
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4013, 100, 99), //unlink|execve|chdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4022, 99, 98), //lseek|getpid|mount
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4033, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4026, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4025, 98, 97), //setuid|getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4027, 97, 96), //ptrace
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4034, 96, 95), //access
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4025, 96, 95), //setuid|getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4027, 95, 94), //ptrace
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4034, 94, 93), //access
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4054, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4045, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4041, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4040, 92, 91), //sync|kill|rename|mkdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4044, 91, 90), //dup|pipe|times
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4040, 90, 89), //sync|kill|rename|mkdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4044, 89, 88), //dup|pipe|times
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4049, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4048, 89, 88), //brk|setgid|getgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4053, 88, 87), //geteuid|getegid|acct|umount2
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4048, 87, 86), //brk|setgid|getgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4053, 86, 85), //geteuid|getegid|acct|umount2
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4060, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4057, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4056, 85, 84), //ioctl|fcntl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4058, 84, 83), //setpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4062, 83, 82), //umask|chroot
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4056, 83, 82), //ioctl|fcntl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4058, 82, 81), //setpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4062, 81, 80), //umask|chroot
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4094, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4085, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4070, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4066, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4065, 78, 77), //dup2|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4068, 77, 76), //setsid|sigaction
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4065, 76, 75), //dup2|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4068, 75, 74), //setsid|sigaction
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4074, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4072, 75, 74), //setreuid|setregid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4082, 74, 73), //sethostname|setrlimit|getrlimit|getrusage|gettimeofday|settimeofday|getgroups|setgroups
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4072, 73, 72), //setreuid|setregid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4082, 72, 71), //sethostname|setrlimit|getrlimit|getrusage|gettimeofday|settimeofday|getgroups|setgroups
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4090, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4088, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4086, 71, 70), //readlink
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4089, 70, 69), //reboot
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4093, 69, 68), //mmap|munmap|truncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4086, 69, 68), //readlink
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4089, 68, 67), //reboot
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4093, 67, 66), //mmap|munmap|truncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4118, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4114, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4103, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4098, 65, 64), //fchmod|fchown|getpriority|setpriority
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4106, 64, 63), //syslog|setitimer|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4098, 63, 62), //fchmod|fchown|getpriority|setpriority
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4106, 62, 61), //syslog|setitimer|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4116, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4115, 62, 61), //wait4
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4117, 61, 60), //sysinfo
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4115, 60, 59), //wait4
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4117, 59, 58), //sysinfo
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4128, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4124, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4123, 58, 57), //fsync|sigreturn|clone|setdomainname|uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4126, 57, 56), //adjtimex|mprotect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4130, 56, 55), //init_module|delete_module
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4246, 27, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4123, 56, 55), //fsync|sigreturn|clone|setdomainname|uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4126, 55, 54), //adjtimex|mprotect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4130, 54, 53), //init_module|delete_module
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4248, 27, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4179, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4154, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4138, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4136, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4134, 50, 49), //quotactl|getpgid|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4137, 49, 48), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4134, 48, 47), //quotactl|getpgid|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4137, 47, 46), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4151, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4148, 47, 46), //setfsuid|setfsgid|_llseek|getdents|_newselect|flock|msync|readv|writev|cacheflush
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4153, 46, 45), //getsid|fdatasync
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4148, 45, 44), //setfsuid|setfsgid|_llseek|getdents|_newselect|flock|msync|readv|writev|cacheflush
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4153, 44, 43), //getsid|fdatasync
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4176, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4169, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4168, 43, 42), //mlock|munlock|mlockall|munlockall|sched_setparam|sched_getparam|sched_setscheduler|sched_getscheduler|sched_yield|sched_get_priority_max|sched_get_priority_min|sched_rr_get_interval|nanosleep|mremap
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4175, 42, 41), //bind|connect|getpeername|getsockname|getsockopt|listen
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4178, 41, 40), //recvfrom|recvmsg
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4168, 41, 40), //mlock|munlock|mlockall|munlockall|sched_setparam|sched_getparam|sched_setscheduler|sched_getscheduler|sched_yield|sched_get_priority_max|sched_get_priority_min|sched_rr_get_interval|nanosleep|mremap
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4175, 40, 39), //bind|connect|getpeername|getsockname|getsockopt|listen
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4178, 39, 38), //recvfrom|recvmsg
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4210, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4190, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4188, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4187, 37, 36), //sendmsg|sendto|setsockopt|shutdown|socket|socketpair|setresuid|getresuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4189, 36, 35), //poll
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4187, 35, 34), //sendmsg|sendto|setsockopt|shutdown|socket|socketpair|setresuid|getresuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4189, 34, 33), //poll
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4203, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4202, 34, 33), //setresgid|getresgid|prctl|rt_sigreturn|rt_sigaction|rt_sigprocmask|rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigsuspend|pread64|pwrite64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4208, 33, 32), //getcwd|capget|capset|sigaltstack|sendfile
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4202, 32, 31), //setresgid|getresgid|prctl|rt_sigreturn|rt_sigaction|rt_sigprocmask|rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigsuspend|pread64|pwrite64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4208, 31, 30), //getcwd|capget|capset|sigaltstack|sendfile
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4222, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4217, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4216, 30, 29), //mmap2|truncate64|ftruncate64|stat64|lstat64|fstat64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4221, 29, 28), //mincore|madvise|getdents64|fcntl64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4241, 28, 27), //gettid|readahead|setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|tkill|sendfile64|futex|sched_setaffinity|sched_getaffinity
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4316, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4288, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4278, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4248, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4247, 23, 22), //exit_group
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4267, 22, 21), //epoll_create|epoll_ctl|epoll_wait|remap_file_pages|set_tid_address|restart_syscall|fadvise64|statfs64|fstatfs64|timer_create|timer_settime|timer_gettime|timer_getoverrun|timer_delete|clock_settime|clock_gettime|clock_getres|clock_nanosleep|tgkill
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4283, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4216, 28, 27), //mmap2|truncate64|ftruncate64|stat64|lstat64|fstat64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4221, 27, 26), //mincore|madvise|getdents64|fcntl64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4247, 26, 25), //gettid|readahead|setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|tkill|sendfile64|futex|sched_setaffinity|sched_getaffinity|io_setup|io_destroy|io_getevents|io_submit|io_cancel|exit_group
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4319, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4293, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4283, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4278, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4267, 21, 20), //epoll_create|epoll_ctl|epoll_wait|remap_file_pages|set_tid_address|restart_syscall|fadvise64|statfs64|fstatfs64|timer_create|timer_settime|timer_gettime|timer_getoverrun|timer_delete|clock_settime|clock_gettime|clock_getres|clock_nanosleep|tgkill
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4279, 20, 19), //waitid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4287, 19, 18), //set_thread_area|inotify_init|inotify_add_watch|inotify_rm_watch
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4312, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4293, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4292, 16, 15), //openat|mkdirat|mknodat|fchownat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4308, 15, 14), //fstatat64|unlinkat|renameat|linkat|symlinkat|readlinkat|fchmodat|faccessat|pselect6|ppoll|unshare|splice|sync_file_range|tee|vmsplice
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4314, 14, 13), //getcpu|epoll_pwait
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4349, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4338, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4319, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4317, 10, 9), //utimensat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4336, 9, 8), //eventfd|fallocate|timerfd_create|timerfd_gettime|timerfd_settime|signalfd4|eventfd2|epoll_create1|dup3|pipe2|inotify_init1|preadv|pwritev|rt_tgsigqueueinfo|perf_event_open|accept4|recvmmsg
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4341, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4288, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4287, 18, 17), //set_thread_area|inotify_init|inotify_add_watch|inotify_rm_watch
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4292, 17, 16), //openat|mkdirat|mknodat|fchownat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4316, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4312, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4308, 14, 13), //fstatat64|unlinkat|renameat|linkat|symlinkat|readlinkat|fchmodat|faccessat|pselect6|ppoll|unshare|splice|sync_file_range|tee|vmsplice
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4314, 13, 12), //getcpu|epoll_pwait
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4317, 12, 11), //utimensat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4349, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4341, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4338, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4336, 8, 7), //eventfd|fallocate|timerfd_create|timerfd_gettime|timerfd_settime|signalfd4|eventfd2|epoll_create1|dup3|pipe2|inotify_init1|preadv|pwritev|rt_tgsigqueueinfo|perf_event_open|accept4|recvmmsg
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4339, 7, 6), //prlimit64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4347, 6, 5), //clock_adjtime|syncfs|sendmmsg|setns|process_vm_readv|process_vm_writev
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4359, 3, 0),
|
||||
|
|
|
@ -5,81 +5,83 @@
|
|||
|
||||
#include "seccomp_bpfs.h"
|
||||
const sock_filter x86_64_filter[] = {
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 86),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 88),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 175, 43, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 79, 21, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 35, 11, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 8, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 3, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 2, 79, 78), //read|write
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4, 78, 77), //close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 6, 77, 76), //fstat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 2, 81, 80), //read|write
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4, 80, 79), //close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 6, 79, 78), //fstat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 32, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 24, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 21, 74, 73), //lseek|mmap|mprotect|munmap|brk|rt_sigaction|rt_sigprocmask|rt_sigreturn|ioctl|pread64|pwrite64|readv|writev
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 29, 73, 72), //sched_yield|mremap|msync|mincore|madvise
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 33, 72, 71), //dup
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 21, 76, 75), //lseek|mmap|mprotect|munmap|brk|rt_sigaction|rt_sigprocmask|rt_sigreturn|ioctl|pread64|pwrite64|readv|writev
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 29, 75, 74), //sched_yield|mremap|msync|mincore|madvise
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 33, 74, 73), //dup
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 44, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 38, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 37, 68, 67), //nanosleep|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 43, 67, 66), //setitimer|getpid|sendfile|socket|connect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 57, 66, 65), //sendto|recvfrom|sendmsg|recvmsg|shutdown|bind|listen|getsockname|getpeername|socketpair|setsockopt|getsockopt|clone
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 37, 70, 69), //nanosleep|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 43, 69, 68), //setitimer|getpid|sendfile|socket|connect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 57, 68, 67), //sendto|recvfrom|sendmsg|recvmsg|shutdown|bind|listen|getsockname|getpeername|socketpair|setsockopt|getsockopt|clone
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 72, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 64, 64, 63), //vfork|execve|exit|wait4|kill|uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 78, 63, 62), //fcntl|flock|fsync|fdatasync|truncate|ftruncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 64, 66, 65), //vfork|execve|exit|wait4|kill|uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 78, 65, 64), //fcntl|flock|fsync|fdatasync|truncate|ftruncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 137, 11, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 95, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 93, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 91, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 82, 58, 57), //getcwd|chdir|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 92, 57, 56), //fchmod
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 94, 56, 55), //fchown
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 82, 60, 59), //getcwd|chdir|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 92, 59, 58), //fchmod
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 94, 58, 57), //fchown
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 135, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 112, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 111, 53, 52), //umask|gettimeofday|getrlimit|getrusage|sysinfo|times|ptrace|getuid|syslog|getgid|setuid|setgid|geteuid|getegid|setpgid|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 132, 52, 51), //setsid|setreuid|setregid|getgroups|setgroups|setresuid|getresuid|setresgid|getresgid|getpgid|setfsuid|setfsgid|getsid|capget|capset|rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigsuspend|sigaltstack
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 136, 51, 50), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 111, 55, 54), //umask|gettimeofday|getrlimit|getrusage|sysinfo|times|ptrace|getuid|syslog|getgid|setuid|setgid|geteuid|getegid|setpgid|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 132, 54, 53), //setsid|setreuid|setregid|getgroups|setgroups|setresuid|getresuid|setresgid|getresgid|getpgid|setfsuid|setfsgid|getsid|capget|capset|rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigsuspend|sigaltstack
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 136, 53, 52), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 157, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 155, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 140, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 139, 47, 46), //statfs|fstatfs
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 153, 46, 45), //getpriority|setpriority|sched_setparam|sched_getparam|sched_setscheduler|sched_getscheduler|sched_get_priority_max|sched_get_priority_min|sched_rr_get_interval|mlock|munlock|mlockall|munlockall
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 156, 45, 44), //pivot_root
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 139, 49, 48), //statfs|fstatfs
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 153, 48, 47), //getpriority|setpriority|sched_setparam|sched_getparam|sched_setscheduler|sched_getscheduler|sched_get_priority_max|sched_get_priority_min|sched_rr_get_interval|mlock|munlock|mlockall|munlockall
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 156, 47, 46), //pivot_root
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 169, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 167, 43, 42), //prctl|arch_prctl|adjtimex|setrlimit|chroot|sync|acct|settimeofday|mount|umount2
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 172, 42, 41), //reboot|sethostname|setdomainname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 262, 21, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 233, 11, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 167, 45, 44), //prctl|arch_prctl|adjtimex|setrlimit|chroot|sync|acct|settimeofday|mount|umount2
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 172, 44, 43), //reboot|sethostname|setdomainname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 257, 21, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 221, 11, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 202, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 186, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 179, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 177, 36, 35), //init_module|delete_module
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 180, 35, 34), //quotactl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 201, 34, 33), //gettid|readahead|setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|tkill
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 221, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 217, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 205, 31, 30), //futex|sched_setaffinity|sched_getaffinity
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 220, 30, 29), //getdents64|set_tid_address|restart_syscall
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 232, 29, 28), //fadvise64|timer_create|timer_settime|timer_gettime|timer_getoverrun|timer_delete|clock_settime|clock_gettime|clock_getres|clock_nanosleep|exit_group
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 254, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 251, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 247, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 235, 25, 24), //epoll_ctl|tgkill
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 248, 24, 23), //waitid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 177, 38, 37), //init_module|delete_module
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 180, 37, 36), //quotactl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 201, 36, 35), //gettid|readahead|setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|tkill
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 217, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 206, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 205, 33, 32), //futex|sched_setaffinity|sched_getaffinity
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 211, 32, 31), //io_setup|io_destroy|io_getevents|io_submit|io_cancel
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 220, 31, 30), //getdents64|set_tid_address|restart_syscall
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 251, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 247, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 233, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 232, 27, 26), //fadvise64|timer_create|timer_settime|timer_gettime|timer_getoverrun|timer_delete|clock_settime|clock_gettime|clock_getres|clock_nanosleep|exit_group
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 235, 26, 25), //epoll_ctl|tgkill
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 248, 25, 24), //waitid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 254, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 253, 23, 22), //ioprio_set|ioprio_get
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 257, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 256, 21, 20), //inotify_add_watch|inotify_rm_watch
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 261, 20, 19), //openat|mkdirat|mknodat|fchownat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 302, 9, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 283, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 280, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 275, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 273, 15, 14), //newfstatat|unlinkat|renameat|linkat|symlinkat|readlinkat|fchmodat|faccessat|pselect6|ppoll|unshare
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 279, 14, 13), //splice|tee|sync_file_range|vmsplice
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 282, 13, 12), //utimensat|epoll_pwait
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 285, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 256, 22, 21), //inotify_add_watch|inotify_rm_watch
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 302, 11, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 280, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 275, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 262, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 261, 17, 16), //openat|mkdirat|mknodat|fchownat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 273, 16, 15), //newfstatat|unlinkat|renameat|linkat|symlinkat|readlinkat|fchmodat|faccessat|pselect6|ppoll|unshare
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 279, 15, 14), //splice|tee|sync_file_range|vmsplice
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 285, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 283, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 282, 12, 11), //utimensat|epoll_pwait
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 284, 11, 10), //timerfd_create
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 300, 10, 9), //fallocate|timerfd_settime|timerfd_gettime|accept4|signalfd4|eventfd2|epoll_create1|dup3|pipe2|inotify_init1|preadv|pwritev|rt_tgsigqueueinfo|perf_event_open|recvmmsg
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 322, 5, 0),
|
||||
|
|
|
@ -5,91 +5,93 @@
|
|||
|
||||
#include "seccomp_bpfs.h"
|
||||
const sock_filter x86_filter[] = {
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 114),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 116),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 131, 57, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 66, 29, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 41, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 24, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 10, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 8, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 7, 107, 106), //restart_syscall|exit|fork|read|write|open|close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 9, 106, 105), //creat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 7, 109, 108), //restart_syscall|exit|fork|read|write|open|close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 9, 108, 107), //creat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 19, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 13, 104, 103), //unlink|execve|chdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 22, 103, 102), //lseek|getpid|mount
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 13, 106, 105), //unlink|execve|chdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 22, 105, 104), //lseek|getpid|mount
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 33, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 26, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 25, 100, 99), //getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 27, 99, 98), //ptrace
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 25, 102, 101), //getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 27, 101, 100), //ptrace
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 36, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 34, 97, 96), //access
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 40, 96, 95), //sync|kill|rename|mkdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 34, 99, 98), //access
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 40, 98, 97), //sync|kill|rename|mkdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 57, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 51, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 45, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 44, 92, 91), //dup|pipe|times
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 46, 91, 90), //brk
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 44, 94, 93), //dup|pipe|times
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 46, 93, 92), //brk
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 54, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 53, 89, 88), //acct|umount2
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 56, 88, 87), //ioctl|fcntl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 53, 91, 90), //acct|umount2
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 56, 90, 89), //ioctl|fcntl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 63, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 60, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 85, 84), //setpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 62, 84, 83), //umask|chroot
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 65, 83, 82), //dup2|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 87, 86), //setpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 62, 86, 85), //umask|chroot
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 65, 85, 84), //dup2|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 96, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 88, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 77, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 74, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 68, 78, 77), //setsid|sigaction
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 76, 77, 76), //sethostname|setrlimit
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 68, 80, 79), //setsid|sigaction
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 76, 79, 78), //sethostname|setrlimit
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 85, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 80, 75, 74), //getrusage|gettimeofday|settimeofday
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 86, 74, 73), //readlink
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 80, 77, 76), //getrusage|gettimeofday|settimeofday
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 86, 76, 75), //readlink
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 94, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 90, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 89, 71, 70), //reboot
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 93, 70, 69), //mmap|munmap|truncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 95, 69, 68), //fchmod
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 89, 73, 72), //reboot
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 93, 72, 71), //mmap|munmap|truncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 95, 71, 70), //fchmod
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 118, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 114, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 102, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 98, 65, 64), //getpriority|setpriority
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 106, 64, 63), //socketcall|syslog|setitimer|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 98, 67, 66), //getpriority|setpriority
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 106, 66, 65), //socketcall|syslog|setitimer|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 116, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 115, 62, 61), //wait4
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 117, 61, 60), //sysinfo
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 115, 64, 63), //wait4
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 117, 63, 62), //sysinfo
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 128, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 124, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 123, 58, 57), //fsync|sigreturn|clone|setdomainname|uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 126, 57, 56), //adjtimex|mprotect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 130, 56, 55), //init_module|delete_module
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 272, 27, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 190, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 123, 60, 59), //fsync|sigreturn|clone|setdomainname|uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 126, 59, 58), //adjtimex|mprotect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 130, 58, 57), //init_module|delete_module
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 272, 29, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 199, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 168, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 138, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 136, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 134, 50, 49), //quotactl|getpgid|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 137, 49, 48), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 134, 52, 51), //quotactl|getpgid|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 137, 51, 50), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 150, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 149, 47, 46), //setfsuid|setfsgid|_llseek|getdents|_newselect|flock|msync|readv|writev|getsid|fdatasync
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 164, 46, 45), //mlock|munlock|mlockall|munlockall|sched_setparam|sched_getparam|sched_setscheduler|sched_getscheduler|sched_yield|sched_get_priority_max|sched_get_priority_min|sched_rr_get_interval|nanosleep|mremap
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 149, 49, 48), //setfsuid|setfsgid|_llseek|getdents|_newselect|flock|msync|readv|writev|getsid|fdatasync
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 164, 48, 47), //mlock|munlock|mlockall|munlockall|sched_setparam|sched_getparam|sched_setscheduler|sched_getscheduler|sched_yield|sched_get_priority_max|sched_get_priority_min|sched_rr_get_interval|nanosleep|mremap
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 183, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 172, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 169, 43, 42), //poll
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 182, 42, 41), //prctl|rt_sigreturn|rt_sigaction|rt_sigprocmask|rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigsuspend|pread64|pwrite64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 188, 41, 40), //getcwd|capget|capset|sigaltstack|sendfile
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 224, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 213, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 199, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 198, 37, 36), //vfork|ugetrlimit|mmap2|truncate64|ftruncate64|stat64|lstat64|fstat64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 212, 36, 35), //getuid32|getgid32|geteuid32|getegid32|setreuid32|setregid32|getgroups32|setgroups32|fchown32|setresuid32|getresuid32|setresgid32|getresgid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 218, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 215, 34, 33), //setuid32|setgid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 222, 33, 32), //mincore|madvise|getdents64|fcntl64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 169, 45, 44), //poll
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 182, 44, 43), //prctl|rt_sigreturn|rt_sigaction|rt_sigprocmask|rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigsuspend|pread64|pwrite64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 190, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 188, 42, 41), //getcwd|capget|capset|sigaltstack|sendfile
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 198, 41, 40), //vfork|ugetrlimit|mmap2|truncate64|ftruncate64|stat64|lstat64|fstat64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 245, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 218, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 213, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 212, 37, 36), //getuid32|getgid32|geteuid32|getegid32|setreuid32|setregid32|getgroups32|setgroups32|fchown32|setresuid32|getresuid32|setresgid32|getresgid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 215, 36, 35), //setuid32|setgid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 224, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 222, 34, 33), //mincore|madvise|getdents64|fcntl64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 244, 33, 32), //gettid|readahead|setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|tkill|sendfile64|futex|sched_setaffinity|sched_getaffinity|set_thread_area
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 254, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 252, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 244, 30, 29), //gettid|readahead|setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|tkill|sendfile64|futex|sched_setaffinity|sched_getaffinity|set_thread_area
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 250, 30, 29), //io_setup|io_destroy|io_getevents|io_submit|io_cancel
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 253, 29, 28), //exit_group
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 271, 28, 27), //epoll_create|epoll_ctl|epoll_wait|remap_file_pages|set_tid_address|timer_create|timer_settime|timer_gettime|timer_getoverrun|timer_delete|clock_settime|clock_gettime|clock_getres|clock_nanosleep|statfs64|fstatfs64|tgkill
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 322, 13, 0),
|
||||
|
|
Loading…
Reference in a new issue