blob: e3dab499efde3b46049a90469f74d6f0b11d807e [file] [log] [blame]
Paul Lawrenceeabc3522016-11-11 11:33:42 -08001// Autogenerated file - edit at your peril!!
2
3#include <linux/filter.h>
4#include <errno.h>
5
Paul Lawrencedfe84342017-02-16 09:24:39 -08006#include "seccomp_bpfs.h"
Victor Hsieh4f02dd52017-12-20 09:19:22 -08007const sock_filter arm64_app_filter[] = {
Victor Hsiehe15233c2018-03-28 16:30:20 -07008BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 56),
9BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 153, 27, 0),
10BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 101, 13, 0),
Victor Hsieh2f23ced2018-01-17 16:59:12 -080011BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 52, 7, 0),
12BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 41, 3, 0),
Paul Lawrenceeabc3522016-11-11 11:33:42 -080013BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 19, 1, 0),
Victor Hsiehe15233c2018-03-28 16:30:20 -070014BPF_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
15BPF_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
Victor Hsieh2f23ced2018-01-17 16:59:12 -080016BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 43, 1, 0),
Victor Hsiehe15233c2018-03-28 16:30:20 -070017BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 42, 47, 46), //pivot_root
18BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 51, 46, 45), //statfs|fstatfs|truncate|ftruncate|fallocate|faccessat|chdir|fchdir
Victor Hsieh2f23ced2018-01-17 16:59:12 -080019BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 90, 3, 0),
Paul Lawrenceeabc3522016-11-11 11:33:42 -080020BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 59, 1, 0),
Victor Hsiehe15233c2018-03-28 16:30:20 -070021BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 43, 42), //fchmod|fchmodat|fchownat|fchown|openat|close
22BPF_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
23BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 99, 41, 40), //capget|capset|personality|exit|exit_group|waitid|set_tid_address|unshare|futex
Victor Hsieh2f23ced2018-01-17 16:59:12 -080024BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 143, 7, 0),
25BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 113, 3, 0),
26BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 107, 1, 0),
27BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 104, 37, 36), //nanosleep|getitimer|setitimer
28BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 112, 36, 35), //timer_create|timer_gettime|timer_getoverrun|timer_settime|timer_delete
29BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 117, 1, 0),
30BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 116, 34, 33), //clock_gettime|clock_getres|clock_nanosleep
31BPF_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
32BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 150, 3, 0),
Victor Hsiehe15233c2018-03-28 16:30:20 -070033BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 147, 1, 0),
Victor Hsieh2f23ced2018-01-17 16:59:12 -080034BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 144, 30, 29), //setregid
Victor Hsiehe15233c2018-03-28 16:30:20 -070035BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 149, 29, 28), //setresuid|getresuid
Victor Hsieh2f23ced2018-01-17 16:59:12 -080036BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 151, 28, 27), //getresgid
37BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 226, 13, 0),
38BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 198, 7, 0),
39BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 163, 3, 0),
40BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 160, 1, 0),
41BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 159, 23, 22), //times|setpgid|getpgid|getsid|setsid|getgroups
42BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 161, 22, 21), //uname
43BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 172, 1, 0),
44BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 170, 20, 19), //getrlimit|setrlimit|getrusage|umask|prctl|getcpu|gettimeofday
45BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 180, 19, 18), //getpid|getppid|getuid|geteuid|getgid|getegid|gettid|sysinfo
46BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 220, 3, 0),
Josh Gaode9262e2017-04-18 16:05:39 -070047BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 203, 1, 0),
Victor Hsieh2f23ced2018-01-17 16:59:12 -080048BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 202, 16, 15), //socket|socketpair|bind|listen
49BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 217, 15, 14), //connect|getsockname|getpeername|sendto|recvfrom|setsockopt|getsockopt|shutdown|sendmsg|recvmsg|readahead|brk|munmap|mremap
50BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 224, 14, 13), //clone|execve|mmap|fadvise64
51BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 274, 7, 0),
52BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 260, 3, 0),
53BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 240, 1, 0),
54BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 234, 10, 9), //mprotect|msync|mlock|munlock|mlockall|munlockall|mincore|madvise
Josh Gaode9262e2017-04-18 16:05:39 -070055BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 244, 9, 8), //rt_tgsigqueueinfo|perf_event_open|accept4|recvmmsg
Victor Hsieh2f23ced2018-01-17 16:59:12 -080056BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 267, 1, 0),
57BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 262, 7, 6), //wait4|prlimit64
58BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 272, 6, 5), //syncfs|setns|sendmmsg|process_vm_readv|process_vm_writev
59BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 284, 3, 0),
60BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 281, 1, 0),
61BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 280, 3, 2), //sched_setattr|sched_getattr|renameat2|seccomp|getrandom|memfd_create
Josh Gaode9262e2017-04-18 16:05:39 -070062BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 282, 2, 1), //execveat
63BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 288, 1, 0), //mlock2|copy_file_range|preadv2|pwritev2
Paul Lawrenceeabc3522016-11-11 11:33:42 -080064BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW),
65};
66
Victor Hsieh4f02dd52017-12-20 09:19:22 -080067const size_t arm64_app_filter_size = sizeof(arm64_app_filter) / sizeof(struct sock_filter);