Allow several syscalls to app process
Several privileged syscalls are still needed before a zygote-fork hangs over the execution to the apps. Test: system starts, different apps run Bug: 63944145 Bug: 76461821 Change-Id: I78da54dac509eb073bc2aa7b820a1f6b0c39a775
This commit is contained in:
parent
85f0542544
commit
e15233cc6b
7 changed files with 320 additions and 339 deletions
|
@ -28,6 +28,9 @@
|
|||
#
|
||||
# This file is processed by a python script named genseccomp.py.
|
||||
|
||||
# Note: Some privileged syscalls are still needed in app process after fork before uid change,
|
||||
# including capset and setresuid.
|
||||
|
||||
# syscalls to modify IDs
|
||||
int setgid:setgid32(gid_t) arm,x86
|
||||
int setgid:setgid(gid_t) arm64,mips,mips64,x86_64
|
||||
|
@ -35,8 +38,6 @@ int setuid:setuid32(uid_t) arm,x86
|
|||
int setuid:setuid(uid_t) arm64,mips,mips64,x86_64
|
||||
int setreuid:setreuid32(uid_t, uid_t) arm,x86
|
||||
int setreuid:setreuid(uid_t, uid_t) arm64,mips,mips64,x86_64
|
||||
int setresuid:setresuid32(uid_t, uid_t, uid_t) arm,x86
|
||||
int setresuid:setresuid(uid_t, uid_t, uid_t) arm64,mips,mips64,x86_64
|
||||
int setresgid:setresgid32(gid_t, gid_t, gid_t) arm,x86
|
||||
int setresgid:setresgid(gid_t, gid_t, gid_t) arm64,mips,mips64,x86_64
|
||||
int setfsgid(gid_t) all
|
||||
|
@ -52,8 +53,6 @@ int settimeofday(const struct timeval*, const struct timezone*) all
|
|||
|
||||
int acct(const char* filepath) all
|
||||
int klogctl:syslog(int, char*, int) all
|
||||
|
||||
int capset(cap_user_header_t header, const cap_user_data_t data) all
|
||||
int chroot(const char*) all
|
||||
|
||||
# syscalls to change machine various configurations
|
||||
|
|
|
@ -5,24 +5,22 @@
|
|||
|
||||
#include "seccomp_bpfs.h"
|
||||
const sock_filter arm64_app_filter[] = {
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 58),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 153, 29, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 101, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 56),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 153, 27, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 101, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 52, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 41, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 19, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 18, 52, 51), //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, 39, 51, 50), //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
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 18, 50, 49), //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, 39, 49, 48), //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
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 43, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 42, 49, 48), //pivot_root
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 51, 48, 47), //statfs|fstatfs|truncate|ftruncate|fallocate|faccessat|chdir|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 42, 47, 46), //pivot_root
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 51, 46, 45), //statfs|fstatfs|truncate|ftruncate|fallocate|faccessat|chdir|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 90, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 59, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 45, 44), //fchmod|fchmodat|fchownat|fchown|openat|close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 89, 44, 43), //pipe2|quotactl|getdents64|lseek|read|write|readv|writev|pread64|pwrite64|preadv|pwritev|sendfile|pselect6|ppoll|signalfd4|vmsplice|splice|tee|readlinkat|newfstatat|fstat|sync|fsync|fdatasync|sync_file_range|timerfd_create|timerfd_settime|timerfd_gettime|utimensat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 92, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 91, 42, 41), //capget
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 99, 41, 40), //personality|exit|exit_group|waitid|set_tid_address|unshare|futex
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 43, 42), //fchmod|fchmodat|fchownat|fchown|openat|close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 89, 42, 41), //pipe2|quotactl|getdents64|lseek|read|write|readv|writev|pread64|pwrite64|preadv|pwritev|sendfile|pselect6|ppoll|signalfd4|vmsplice|splice|tee|readlinkat|newfstatat|fstat|sync|fsync|fdatasync|sync_file_range|timerfd_create|timerfd_settime|timerfd_gettime|utimensat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 99, 41, 40), //capget|capset|personality|exit|exit_group|waitid|set_tid_address|unshare|futex
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 143, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 113, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 107, 1, 0),
|
||||
|
@ -32,9 +30,9 @@ BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 117, 1, 0),
|
|||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 116, 34, 33), //clock_gettime|clock_getres|clock_nanosleep
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 142, 33, 32), //ptrace|sched_setparam|sched_setscheduler|sched_getscheduler|sched_getparam|sched_setaffinity|sched_getaffinity|sched_yield|sched_get_priority_max|sched_get_priority_min|sched_rr_get_interval|restart_syscall|kill|tkill|tgkill|sigaltstack|rt_sigsuspend|rt_sigaction|rt_sigprocmask|rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigreturn|setpriority|getpriority
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 150, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 148, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 147, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 144, 30, 29), //setregid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 149, 29, 28), //getresuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 149, 29, 28), //setresuid|getresuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 151, 28, 27), //getresgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 226, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 198, 7, 0),
|
||||
|
|
|
@ -5,89 +5,85 @@
|
|||
|
||||
#include "seccomp_bpfs.h"
|
||||
const sock_filter arm_app_filter[] = {
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 132),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 183, 65, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 85, 33, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 45, 17, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 26, 9, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 19, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 128),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 172, 63, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 77, 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, 124, 123), //restart_syscall|exit|fork|read|write|open|close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 9, 123, 122), //creat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 13, 122, 121), //unlink|execve|chdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 24, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 21, 120, 119), //lseek|getpid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 25, 119, 118), //getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 36, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 33, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 27, 116, 115), //ptrace
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 34, 115, 114), //access
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 41, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 40, 113, 112), //sync|kill|rename|mkdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 44, 112, 111), //dup|pipe|times
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 63, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 57, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 54, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 46, 108, 107), //brk
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 56, 107, 106), //ioctl|fcntl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 60, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 105, 104), //setpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 61, 104, 103), //umask
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 75, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 66, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 65, 101, 100), //dup2|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 68, 100, 99), //setsid|sigaction
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 77, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 76, 98, 97), //setrlimit
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 79, 97, 96), //getrusage|gettimeofday
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 122, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 104, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 94, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 91, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 86, 92, 91), //readlink
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 93, 91, 90), //munmap|truncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 96, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 95, 89, 88), //fchmod
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 98, 88, 87), //getpriority|setpriority
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 116, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 114, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 106, 85, 84), //setitimer|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 115, 84, 83), //wait4
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 118, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 117, 82, 81), //sysinfo
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 121, 81, 80), //fsync|sigreturn|clone
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 140, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 131, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 125, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 123, 77, 76), //uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 126, 76, 75), //mprotect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 136, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 134, 74, 73), //quotactl|getpgid|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 137, 73, 72), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 168, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 150, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 149, 70, 69), //_llseek|getdents|_newselect|flock|msync|readv|writev|getsid|fdatasync
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 164, 69, 68), //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, 172, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 169, 67, 66), //poll
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 182, 66, 65), //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, 290, 33, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 219, 17, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 207, 9, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 199, 5, 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, 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, 21, 117, 116), //lseek|getpid
|
||||
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, 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, 60, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 54, 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, 57, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 56, 103, 102), //ioctl|fcntl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 102, 101), //setpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 66, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 63, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 61, 99, 98), //umask
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 65, 98, 97), //dup2|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 75, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 68, 96, 95), //setsid|sigaction
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 76, 95, 94), //setrlimit
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 118, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 96, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 91, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 85, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 79, 90, 89), //getrusage|gettimeofday
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 86, 89, 88), //readlink
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 94, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 93, 87, 86), //munmap|truncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 95, 86, 85), //fchmod
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 114, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 104, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 98, 83, 82), //getpriority|setpriority
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 106, 82, 81), //setitimer|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 116, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 115, 80, 79), //wait4
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 117, 79, 78), //sysinfo
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 136, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 125, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 122, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 121, 75, 74), //fsync|sigreturn|clone
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 123, 74, 73), //uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 131, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 126, 72, 71), //mprotect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 134, 71, 70), //quotactl|getpgid|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 150, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 140, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 137, 68, 67), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 149, 67, 66), //_llseek|getdents|_newselect|flock|msync|readv|writev|getsid|fdatasync
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 168, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 164, 65, 64), //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, 64, 63), //poll
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 290, 31, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 219, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 204, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 190, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 186, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 185, 59, 58), //getcwd|capget
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 188, 58, 57), //sigaltstack|sendfile
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 198, 57, 56), //vfork|ugetrlimit|mmap2|truncate64|ftruncate64|stat64|lstat64|fstat64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 204, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 203, 55, 54), //getuid32|getgid32|geteuid32|getegid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 206, 54, 53), //setregid32|getgroups32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 183, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 182, 58, 57), //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, 57, 56), //getcwd|capget|capset|sigaltstack|sendfile
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 199, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 198, 55, 54), //vfork|ugetrlimit|mmap2|truncate64|ftruncate64|stat64|lstat64|fstat64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 203, 54, 53), //getuid32|getgid32|geteuid32|getegid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 211, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 209, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 208, 51, 50), //fchown32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 210, 50, 49), //getresuid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 207, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 206, 51, 50), //setregid32|getgroups32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 210, 50, 49), //fchown32|setresuid32|getresuid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 217, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 212, 48, 47), //getresgid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 218, 47, 46), //getdents64
|
||||
|
|
|
@ -5,65 +5,63 @@
|
|||
|
||||
#include "seccomp_bpfs.h"
|
||||
const sock_filter mips64_app_filter[] = {
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5000, 0, 100),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5137, 49, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5000, 0, 98),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5151, 49, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5091, 25, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5038, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5023, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5005, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5003, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5002, 93, 92), //read|write
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5004, 92, 91), //close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5002, 91, 90), //read|write
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5004, 90, 89), //close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5008, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5006, 90, 89), //fstat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5020, 89, 88), //lseek|mmap|mprotect|munmap|brk|rt_sigaction|rt_sigprocmask|ioctl|pread64|pwrite64|readv|writev
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5006, 88, 87), //fstat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5020, 87, 86), //lseek|mmap|mprotect|munmap|brk|rt_sigaction|rt_sigprocmask|ioctl|pread64|pwrite64|readv|writev
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5034, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5031, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5028, 86, 85), //sched_yield|mremap|msync|mincore|madvise
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5032, 85, 84), //dup
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5037, 84, 83), //nanosleep|getitimer|setitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5028, 84, 83), //sched_yield|mremap|msync|mincore|madvise
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5032, 83, 82), //dup
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5037, 82, 81), //nanosleep|getitimer|setitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5070, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5057, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5043, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5042, 80, 79), //getpid|sendfile|socket|connect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5056, 79, 78), //sendto|recvfrom|sendmsg|recvmsg|shutdown|bind|listen|getsockname|getpeername|socketpair|setsockopt|getsockopt|clone
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5062, 78, 77), //execve|exit|wait4|kill|uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5042, 78, 77), //getpid|sendfile|socket|connect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5056, 77, 76), //sendto|recvfrom|sendmsg|recvmsg|shutdown|bind|listen|getsockname|getpeername|socketpair|setsockopt|getsockopt|clone
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5062, 76, 75), //execve|exit|wait4|kill|uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5089, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5077, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5076, 75, 74), //fcntl|flock|fsync|fdatasync|truncate|ftruncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5080, 74, 73), //getcwd|chdir|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5090, 73, 72), //fchmod
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5116, 11, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5076, 73, 72), //fcntl|flock|fsync|fdatasync|truncate|ftruncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5080, 72, 71), //getcwd|chdir|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5090, 71, 70), //fchmod
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5115, 11, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5105, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5102, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5093, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5092, 68, 67), //fchown
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5101, 67, 66), //umask|gettimeofday|getrlimit|getrusage|sysinfo|times|ptrace|getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5103, 66, 65), //getgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5092, 66, 65), //fchown
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5101, 65, 64), //umask|gettimeofday|getrlimit|getrusage|sysinfo|times|ptrace|getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5103, 64, 63), //getgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5112, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5110, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5109, 63, 62), //geteuid|getegid|setpgid|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5111, 62, 61), //setsid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5114, 61, 60), //setregid|getgroups
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5125, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5109, 61, 60), //geteuid|getegid|setpgid|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5111, 60, 59), //setsid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5114, 59, 58), //setregid|getgroups
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5132, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5122, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5118, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5117, 57, 56), //getresuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5120, 56, 55), //getresgid|getpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5124, 55, 54), //getsid|capget
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5134, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5132, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5130, 52, 51), //rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigsuspend|sigaltstack
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5133, 51, 50), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5136, 50, 49), //statfs|fstatfs
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5237, 25, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5194, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5157, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5153, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5151, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5150, 44, 43), //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, 5152, 43, 42), //pivot_root
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5155, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5117, 55, 54), //setresuid|getresuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5120, 54, 53), //getresgid|getpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5130, 53, 52), //getsid|capget|capset|rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigsuspend|sigaltstack
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5137, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5134, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5133, 50, 49), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5136, 49, 48), //statfs|fstatfs
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5150, 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, 5237, 23, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5194, 11, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5157, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5155, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5153, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5152, 42, 41), //pivot_root
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5154, 41, 40), //prctl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5156, 40, 39), //setrlimit
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5178, 3, 0),
|
||||
|
|
|
@ -5,92 +5,88 @@
|
|||
|
||||
#include "seccomp_bpfs.h"
|
||||
const sock_filter mips_app_filter[] = {
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4001, 0, 118),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4136, 59, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4001, 0, 114),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4131, 57, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4063, 29, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4041, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4024, 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, 111, 110), //exit|fork|read|write|open|close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4009, 110, 109), //creat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4007, 107, 106), //exit|fork|read|write|open|close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4009, 106, 105), //creat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4019, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4013, 108, 107), //unlink|execve|chdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4021, 107, 106), //lseek|getpid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4013, 104, 103), //unlink|execve|chdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4021, 103, 102), //lseek|getpid
|
||||
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, 104, 103), //getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4027, 103, 102), //ptrace
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4025, 100, 99), //getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4027, 99, 98), //ptrace
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4036, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4034, 101, 100), //access
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4040, 100, 99), //sync|kill|rename|mkdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4034, 97, 96), //access
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4040, 96, 95), //sync|kill|rename|mkdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4054, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4047, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4045, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4044, 96, 95), //dup|pipe|times
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4046, 95, 94), //brk
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4044, 92, 91), //dup|pipe|times
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4046, 91, 90), //brk
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4049, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4048, 93, 92), //getgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4051, 92, 91), //geteuid|getegid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4048, 89, 88), //getgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4051, 88, 87), //geteuid|getegid
|
||||
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, 89, 88), //ioctl|fcntl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4058, 88, 87), //setpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4061, 87, 86), //umask
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4104, 15, 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, 4061, 83, 82), //umask
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4094, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4080, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4071, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4066, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4065, 82, 81), //dup2|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4068, 81, 80), //setsid|sigaction
|
||||
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, 4075, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4072, 79, 78), //setregid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4079, 78, 77), //setrlimit|getrlimit|getrusage|gettimeofday
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4072, 75, 74), //setregid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4079, 74, 73), //setrlimit|getrlimit|getrusage|gettimeofday
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4090, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4085, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4081, 75, 74), //getgroups
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4086, 74, 73), //readlink
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4094, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4093, 72, 71), //mmap|munmap|truncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4098, 71, 70), //fchmod|fchown|getpriority|setpriority
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4122, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4116, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4114, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4106, 67, 66), //setitimer|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4115, 66, 65), //wait4
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4118, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4117, 64, 63), //sysinfo
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4121, 63, 62), //fsync|sigreturn|clone
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4131, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4125, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4123, 60, 59), //uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4126, 59, 58), //mprotect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4134, 58, 57), //quotactl|getpgid|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4248, 29, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4188, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4169, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4151, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4140, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4137, 52, 51), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4148, 51, 50), //_llseek|getdents|_newselect|flock|msync|readv|writev|cacheflush
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4154, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4153, 49, 48), //getsid|fdatasync
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4168, 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, 4179, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4176, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4175, 45, 44), //bind|connect|getpeername|getsockname|getsockopt|listen
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4178, 44, 43), //recvfrom|recvmsg
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4186, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4185, 42, 41), //sendmsg|sendto|setsockopt|shutdown|socket|socketpair
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4187, 41, 40), //getresuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4081, 71, 70), //getgroups
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4086, 70, 69), //readlink
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4093, 69, 68), //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, 4104, 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), //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, 4125, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4122, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4121, 58, 57), //fsync|sigreturn|clone
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4123, 57, 56), //uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4126, 56, 55), //mprotect
|
||||
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, 4140, 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, 4151, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4148, 47, 46), //_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, 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, 4210, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4203, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4191, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4189, 37, 36), //poll
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4202, 36, 35), //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, 4206, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4205, 34, 33), //getcwd|capget
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4208, 33, 32), //sigaltstack|sendfile
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4191, 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, 4203, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4202, 34, 33), //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, 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
|
||||
|
|
|
@ -5,92 +5,90 @@
|
|||
|
||||
#include "seccomp_bpfs.h"
|
||||
const sock_filter x86_64_app_filter[] = {
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 104),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 155, 51, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 102),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 157, 51, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 93, 25, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 38, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 24, 7, 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, 97, 96), //read|write
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4, 96, 95), //close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 2, 95, 94), //read|write
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 4, 94, 93), //close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 8, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 6, 94, 93), //fstat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 21, 93, 92), //lseek|mmap|mprotect|munmap|brk|rt_sigaction|rt_sigprocmask|rt_sigreturn|ioctl|pread64|pwrite64|readv|writev
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 6, 92, 91), //fstat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 21, 91, 90), //lseek|mmap|mprotect|munmap|brk|rt_sigaction|rt_sigprocmask|rt_sigreturn|ioctl|pread64|pwrite64|readv|writev
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 35, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 32, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 29, 90, 89), //sched_yield|mremap|msync|mincore|madvise
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 33, 89, 88), //dup
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 37, 88, 87), //nanosleep|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 29, 88, 87), //sched_yield|mremap|msync|mincore|madvise
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 33, 87, 86), //dup
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 37, 86, 85), //nanosleep|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 72, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 44, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 43, 84, 83), //setitimer|getpid|sendfile|socket|connect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 57, 83, 82), //sendto|recvfrom|sendmsg|recvmsg|shutdown|bind|listen|getsockname|getpeername|socketpair|setsockopt|getsockopt|clone
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 64, 82, 81), //vfork|execve|exit|wait4|kill|uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 43, 82, 81), //setitimer|getpid|sendfile|socket|connect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 57, 81, 80), //sendto|recvfrom|sendmsg|recvmsg|shutdown|bind|listen|getsockname|getpeername|socketpair|setsockopt|getsockopt|clone
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 64, 80, 79), //vfork|execve|exit|wait4|kill|uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 91, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 79, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 78, 79, 78), //fcntl|flock|fsync|fdatasync|truncate|ftruncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 82, 78, 77), //getcwd|chdir|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 92, 77, 76), //fchmod
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 78, 77, 76), //fcntl|flock|fsync|fdatasync|truncate|ftruncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 82, 76, 75), //getcwd|chdir|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 92, 75, 74), //fchmod
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 120, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 112, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 104, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 95, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 94, 72, 71), //fchown
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 103, 71, 70), //umask|gettimeofday|getrlimit|getrusage|sysinfo|times|ptrace|getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 94, 70, 69), //fchown
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 103, 69, 68), //umask|gettimeofday|getrlimit|getrusage|sysinfo|times|ptrace|getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 107, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 105, 69, 68), //getgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 111, 68, 67), //geteuid|getegid|setpgid|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 118, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 105, 67, 66), //getgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 111, 66, 65), //geteuid|getegid|setpgid|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 117, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 114, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 113, 65, 64), //setsid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 116, 64, 63), //setregid|getgroups
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 119, 63, 62), //getresuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 135, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 127, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 113, 63, 62), //setsid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 116, 62, 61), //setregid|getgroups
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 119, 61, 60), //setresuid|getresuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 137, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 135, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 124, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 122, 59, 58), //getresgid|getpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 126, 58, 57), //getsid|capget
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 132, 57, 56), //rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigsuspend|sigaltstack
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 140, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 137, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 136, 54, 53), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 139, 53, 52), //statfs|fstatfs
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 153, 52, 51), //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, 251, 25, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 206, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 179, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 160, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 157, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 156, 46, 45), //pivot_root
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 159, 45, 44), //prctl|arch_prctl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 162, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 122, 57, 56), //getresgid|getpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 132, 56, 55), //getsid|capget|capset|rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigsuspend|sigaltstack
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 136, 55, 54), //personality
|
||||
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, 52, 51), //statfs|fstatfs
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 153, 51, 50), //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, 50, 49), //pivot_root
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 254, 25, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 217, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 186, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 162, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 160, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 159, 44, 43), //prctl|arch_prctl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 161, 43, 42), //setrlimit
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 163, 42, 41), //sync
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 202, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 186, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 180, 39, 38), //quotactl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 201, 38, 37), //gettid|readahead|setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|tkill
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 205, 37, 36), //futex|sched_setaffinity|sched_getaffinity
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 228, 5, 0),
|
||||
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, 211, 33, 32), //io_setup|io_destroy|io_getevents|io_submit|io_cancel
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 220, 32, 31), //getdents64|set_tid_address|restart_syscall
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 227, 31, 30), //fadvise64|timer_create|timer_settime|timer_gettime|timer_getoverrun|timer_delete
|
||||
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, 28, 27), //clock_gettime|clock_getres|clock_nanosleep|exit_group
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 235, 27, 26), //epoll_ctl|tgkill
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 248, 26, 25), //waitid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 285, 13, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 275, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 257, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 254, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 253, 21, 20), //ioprio_set|ioprio_get
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 256, 20, 19), //inotify_add_watch|inotify_rm_watch
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 262, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 179, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 163, 41, 40), //sync
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 180, 40, 39), //quotactl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 206, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 202, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 201, 37, 36), //gettid|readahead|setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|tkill
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 205, 36, 35), //futex|sched_setaffinity|sched_getaffinity
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 211, 35, 34), //io_setup|io_destroy|io_getevents|io_submit|io_cancel
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 233, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 228, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 221, 1, 0),
|
||||
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, 227, 30, 29), //fadvise64|timer_create|timer_settime|timer_gettime|timer_getoverrun|timer_delete
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 232, 29, 28), //clock_gettime|clock_getres|clock_nanosleep|exit_group
|
||||
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, 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, 253, 24, 23), //ioprio_set|ioprio_get
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 285, 11, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 275, 5, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 262, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 257, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 256, 19, 18), //inotify_add_watch|inotify_rm_watch
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 261, 18, 17), //openat|mkdirat|mknodat|fchownat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 273, 17, 16), //newfstatat|unlinkat|renameat|linkat|symlinkat|readlinkat|fchmodat|faccessat|pselect6|ppoll|unshare
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 283, 3, 0),
|
||||
|
|
|
@ -5,99 +5,95 @@
|
|||
|
||||
#include "seccomp_bpfs.h"
|
||||
const sock_filter x86_app_filter[] = {
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 124),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 150, 61, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 77, 31, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 120),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 140, 59, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 75, 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, 117, 116), //restart_syscall|exit|fork|read|write|open|close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 9, 116, 115), //creat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 7, 113, 112), //restart_syscall|exit|fork|read|write|open|close
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 9, 112, 111), //creat
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 19, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 13, 114, 113), //unlink|execve|chdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 21, 113, 112), //lseek|getpid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 13, 110, 109), //unlink|execve|chdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 21, 109, 108), //lseek|getpid
|
||||
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, 110, 109), //getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 27, 109, 108), //ptrace
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 25, 106, 105), //getuid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 27, 105, 104), //ptrace
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 36, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 34, 107, 106), //access
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 40, 106, 105), //sync|kill|rename|mkdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 34, 103, 102), //access
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 40, 102, 101), //sync|kill|rename|mkdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 60, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 54, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 45, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 44, 102, 101), //dup|pipe|times
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 46, 101, 100), //brk
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 44, 98, 97), //dup|pipe|times
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 46, 97, 96), //brk
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 57, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 56, 99, 98), //ioctl|fcntl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 98, 97), //setpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 56, 95, 94), //ioctl|fcntl
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 94, 93), //setpgid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 66, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 63, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 61, 95, 94), //umask
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 65, 94, 93), //dup2|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 75, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 68, 92, 91), //setsid|sigaction
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 76, 91, 90), //setrlimit
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 116, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 96, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 90, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 85, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 79, 86, 85), //getrusage|gettimeofday
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 86, 85, 84), //readlink
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 94, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 93, 83, 82), //mmap|munmap|truncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 95, 82, 81), //fchmod
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 104, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 102, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 98, 79, 78), //getpriority|setpriority
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 103, 78, 77), //socketcall
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 114, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 106, 76, 75), //setitimer|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 115, 75, 74), //wait4
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 131, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 122, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 118, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 117, 71, 70), //sysinfo
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 121, 70, 69), //fsync|sigreturn|clone
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 125, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 123, 68, 67), //uname
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 126, 67, 66), //mprotect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 140, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 136, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 134, 64, 63), //quotactl|getpgid|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 137, 63, 62), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 149, 62, 61), //_llseek|getdents|_newselect|flock|msync|readv|writev|getsid|fdatasync
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 265, 31, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 61, 91, 90), //umask
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 65, 90, 89), //dup2|getppid
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 68, 89, 88), //setsid|sigaction
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 114, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 94, 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, 84, 83), //setrlimit
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 79, 83, 82), //getrusage|gettimeofday
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 90, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 86, 81, 80), //readlink
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 93, 80, 79), //mmap|munmap|truncate
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 102, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 96, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 95, 77, 76), //fchmod
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 98, 76, 75), //getpriority|setpriority
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 104, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 103, 74, 73), //socketcall
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 106, 73, 72), //setitimer|getitimer
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 125, 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, 69, 68), //wait4
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 117, 68, 67), //sysinfo
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 122, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 121, 66, 65), //fsync|sigreturn|clone
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 123, 65, 64), //uname
|
||||
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, 126, 62, 61), //mprotect
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 134, 61, 60), //quotactl|getpgid|fchdir
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 137, 60, 59), //personality
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 265, 29, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 207, 15, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 186, 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, 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, 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, 185, 52, 51), //getcwd|capget
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 183, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 168, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 150, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 149, 54, 53), //_llseek|getdents|_newselect|flock|msync|readv|writev|getsid|fdatasync
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 164, 53, 52), //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, 172, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 169, 51, 50), //poll
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 182, 50, 49), //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, 199, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 190, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 188, 49, 48), //sigaltstack|sendfile
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 198, 48, 47), //vfork|ugetrlimit|mmap2|truncate64|ftruncate64|stat64|lstat64|fstat64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 188, 47, 46), //getcwd|capget|capset|sigaltstack|sendfile
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 198, 46, 45), //vfork|ugetrlimit|mmap2|truncate64|ftruncate64|stat64|lstat64|fstat64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 204, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 203, 46, 45), //getuid32|getgid32|geteuid32|getegid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 206, 45, 44), //setregid32|getgroups32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 224, 7, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 211, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 209, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 208, 41, 40), //fchown32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 210, 40, 39), //getresuid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 218, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 203, 44, 43), //getuid32|getgid32|geteuid32|getegid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 206, 43, 42), //setregid32|getgroups32
|
||||
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, 211, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 210, 39, 38), //fchown32|setresuid32|getresuid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 212, 38, 37), //getresgid32
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 222, 37, 36), //mincore|madvise|getdents64|fcntl64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 252, 3, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 245, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 244, 34, 33), //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, 33, 32), //io_setup|io_destroy|io_getevents|io_submit|io_cancel
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 254, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 224, 1, 0),
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 222, 36, 35), //mincore|madvise|getdents64|fcntl64
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 244, 35, 34), //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, 250, 32, 31), //io_setup|io_destroy|io_getevents|io_submit|io_cancel
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 253, 31, 30), //exit_group
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 264, 30, 29), //epoll_create|epoll_ctl|epoll_wait|remap_file_pages|set_tid_address|timer_create|timer_settime|timer_gettime|timer_getoverrun|timer_delete
|
||||
BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 322, 15, 0),
|
||||
|
|
Loading…
Reference in a new issue