blob: 77fe208292a76b7654161d71e156b0d6e8424096 [file] [log] [blame]
Paul Lawrence89fa81f2017-02-17 10:22:03 -08001// Autogenerated file - edit at your peril!!
2
3#include <linux/filter.h>
4#include <errno.h>
5
6#include "seccomp_bpfs.h"
7const sock_filter x86_filter[] = {
Paul Lawrence822ecec2017-03-20 11:02:11 -07008BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 109),
Paul Lawrence89fa81f2017-02-17 10:22:03 -08009BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 131, 55, 0),
10BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 64, 27, 0),
11BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 36, 13, 0),
12BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 24, 7, 0),
13BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 10, 3, 0),
14BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 8, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070015BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 7, 103, 102), //restart_syscall|exit|fork|read|write|open|close
16BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 9, 102, 101), //creat
Paul Lawrence89fa81f2017-02-17 10:22:03 -080017BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 19, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070018BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 13, 100, 99), //unlink|execve|chdir
19BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 22, 99, 98), //lseek|getpid|mount
Paul Lawrence89fa81f2017-02-17 10:22:03 -080020BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 33, 3, 0),
21BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 26, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070022BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 25, 96, 95), //getuid
23BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 27, 95, 94), //ptrace
24BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 34, 94, 93), //access
Paul Lawrence89fa81f2017-02-17 10:22:03 -080025BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 54, 7, 0),
26BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 45, 3, 0),
27BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 41, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070028BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 38, 90, 89), //sync|kill
29BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 44, 89, 88), //dup|pipe|times
Paul Lawrence89fa81f2017-02-17 10:22:03 -080030BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 51, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070031BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 46, 87, 86), //brk
32BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 53, 86, 85), //acct|umount2
Paul Lawrence89fa81f2017-02-17 10:22:03 -080033BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 60, 3, 0),
34BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 57, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070035BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 56, 83, 82), //ioctl|fcntl
36BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 82, 81), //setpgid
37BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 62, 81, 80), //umask|chroot
Paul Lawrence89fa81f2017-02-17 10:22:03 -080038BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 94, 13, 0),
39BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 85, 7, 0),
40BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 74, 3, 0),
41BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 66, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070042BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 65, 76, 75), //getppid
43BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 68, 75, 74), //setsid|sigaction
Paul Lawrence89fa81f2017-02-17 10:22:03 -080044BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 77, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070045BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 76, 73, 72), //sethostname|setrlimit
46BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 80, 72, 71), //getrusage|gettimeofday|settimeofday
Paul Lawrence89fa81f2017-02-17 10:22:03 -080047BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 91, 3, 0),
48BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 87, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070049BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 86, 69, 68), //readlink
50BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 89, 68, 67), //swapon|reboot
51BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 93, 67, 66), //munmap|truncate
Paul Lawrence89fa81f2017-02-17 10:22:03 -080052BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 118, 7, 0),
53BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 102, 3, 0),
54BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 96, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070055BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 95, 63, 62), //fchmod
56BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 98, 62, 61), //getpriority|setpriority
Paul Lawrence89fa81f2017-02-17 10:22:03 -080057BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 114, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070058BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 106, 60, 59), //socketcall|syslog|setitimer|getitimer
59BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 117, 59, 58), //wait4|swapoff|sysinfo
Paul Lawrence89fa81f2017-02-17 10:22:03 -080060BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 128, 3, 0),
61BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 124, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070062BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 123, 56, 55), //fsync|sigreturn|clone|setdomainname|uname
63BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 126, 55, 54), //adjtimex|mprotect
64BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 130, 54, 53), //init_module|delete_module
Paul Lawrence89fa81f2017-02-17 10:22:03 -080065BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 254, 27, 0),
66BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 183, 13, 0),
67BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 150, 7, 0),
68BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 138, 3, 0),
69BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 136, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070070BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 134, 48, 47), //quotactl|getpgid|fchdir
71BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 137, 47, 46), //personality
Paul Lawrence89fa81f2017-02-17 10:22:03 -080072BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 143, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070073BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 142, 45, 44), //setfsuid|setfsgid|_llseek|getdents
74BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 149, 44, 43), //flock|msync|readv|writev|getsid|fdatasync
Paul Lawrence89fa81f2017-02-17 10:22:03 -080075BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 172, 3, 0),
76BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 168, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070077BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 164, 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
78BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 169, 40, 39), //poll
79BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 182, 39, 38), //prctl|rt_sigreturn|rt_sigaction|rt_sigprocmask|rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigsuspend|pread64|pwrite64
Paul Lawrence89fa81f2017-02-17 10:22:03 -080080BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 218, 7, 0),
81BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 199, 3, 0),
82BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 190, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070083BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 188, 35, 34), //getcwd|capget|capset|sigaltstack|sendfile
84BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 198, 34, 33), //vfork|ugetrlimit|mmap2|truncate64|ftruncate64|stat64|lstat64|fstat64
Paul Lawrence89fa81f2017-02-17 10:22:03 -080085BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 213, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070086BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 212, 32, 31), //getuid32|getgid32|geteuid32|getegid32|setreuid32|setregid32|getgroups32|setgroups32|fchown32|setresuid32|getresuid32|setresgid32|getresgid32
87BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 215, 31, 30), //setuid32|setgid32
Paul Lawrence89fa81f2017-02-17 10:22:03 -080088BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 252, 3, 0),
89BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 224, 1, 0),
Paul Lawrence822ecec2017-03-20 11:02:11 -070090BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 222, 28, 27), //mincore|madvise|getdents64|fcntl64
91BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 244, 27, 26), //gettid|readahead|setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|tkill|sendfile64|futex|sched_setaffinity|sched_getaffinity|set_thread_area
92BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 253, 26, 25), //exit_group
93BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 318, 13, 0),
94BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 295, 7, 0),
95BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 284, 3, 0),
96BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 272, 1, 0),
97BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 271, 21, 20), //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
Paul Lawrence89fa81f2017-02-17 10:22:03 -080098BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 273, 20, 19), //fadvise64_64
Paul Lawrence822ecec2017-03-20 11:02:11 -070099BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 291, 1, 0),
100BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 285, 18, 17), //waitid
101BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 294, 17, 16), //inotify_init|inotify_add_watch|inotify_rm_watch
102BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 313, 3, 0),
103BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 300, 1, 0),
104BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 299, 14, 13), //openat|mkdirat|mknodat|fchownat
105BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 311, 13, 12), //fstatat64|unlinkat|renameat|linkat|symlinkat|readlinkat|fchmodat|faccessat|pselect6|ppoll|unshare
106BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 317, 12, 11), //splice|sync_file_range|tee|vmsplice
107BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 343, 5, 0),
108BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 340, 3, 0),
109BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 322, 1, 0),
110BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 321, 8, 7), //getcpu|epoll_pwait|utimensat
Paul Lawrence89fa81f2017-02-17 10:22:03 -0800111BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 337, 7, 6), //timerfd_create|eventfd|fallocate|timerfd_settime|timerfd_gettime|signalfd4|eventfd2|epoll_create1|dup3|pipe2|inotify_init1|preadv|pwritev|rt_tgsigqueueinfo|perf_event_open
112BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 341, 6, 5), //prlimit64
113BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 354, 3, 0),
114BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 346, 1, 0),
115BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 345, 3, 2), //clock_adjtime|syncfs
116BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 349, 2, 1), //setns|process_vm_readv|process_vm_writev
117BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 356, 1, 0), //seccomp|getrandom
118BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW),
119};
120
121const size_t x86_filter_size = sizeof(x86_filter) / sizeof(struct sock_filter);