Paul Lawrence | eabc352 | 2016-11-11 11:33:42 -0800 | [diff] [blame] | 1 | // Autogenerated file - edit at your peril!! |
| 2 | |
| 3 | #include <linux/filter.h> |
| 4 | #include <errno.h> |
| 5 | |
| 6 | #include "seccomp_policy.h" |
| 7 | const struct sock_filter arm64_filter[] = { |
| 8 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 5, 0, 35), |
| 9 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 140, 17, 0), |
| 10 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 101, 9, 0), |
| 11 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 43, 5, 0), |
| 12 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 32, 3, 0), |
| 13 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 19, 1, 0), |
Paul Lawrence | be8a2af | 2017-01-25 15:20:52 -0800 | [diff] [blame] | 14 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 18, 30, 29), //setxattr|lsetxattr|fsetxattr|getxattr|lgetxattr|fgetxattr|listxattr|llistxattr|flistxattr|removexattr|lremovexattr|fremovexattr|getcwd |
| 15 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 30, 29, 28), //eventfd2|epoll_create1|epoll_ctl|epoll_pwait|dup|dup3|fcntl|inotify_init1|inotify_add_watch|inotify_rm_watch|ioctl |
| 16 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 41, 28, 27), //flock|mknodat|mkdirat|unlinkat|symlinkat|linkat|renameat|umount2|mount |
Paul Lawrence | eabc352 | 2016-11-11 11:33:42 -0800 | [diff] [blame] | 17 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 59, 1, 0), |
Paul Lawrence | be8a2af | 2017-01-25 15:20:52 -0800 | [diff] [blame] | 18 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 58, 26, 25), //statfs|fstatfs|truncate|ftruncate|fallocate|faccessat|chdir|fchdir|chroot|fchmod|fchmodat|fchownat|fchown|openat|close |
| 19 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 98, 25, 24), //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|acct|capget|capset|personality|exit|exit_group|waitid|set_tid_address|unshare |
Paul Lawrence | eabc352 | 2016-11-11 11:33:42 -0800 | [diff] [blame] | 20 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 129, 3, 0), |
| 21 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 105, 1, 0), |
Paul Lawrence | be8a2af | 2017-01-25 15:20:52 -0800 | [diff] [blame] | 22 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 104, 22, 21), //nanosleep|getitimer|setitimer |
| 23 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 128, 21, 20), //init_module|delete_module|timer_create|timer_gettime|timer_getoverrun|timer_settime|timer_delete|clock_settime|clock_gettime|clock_getres|clock_nanosleep|syslog|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 |
Paul Lawrence | eabc352 | 2016-11-11 11:33:42 -0800 | [diff] [blame] | 24 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 131, 1, 0), |
Paul Lawrence | be8a2af | 2017-01-25 15:20:52 -0800 | [diff] [blame] | 25 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 130, 19, 18), //kill |
| 26 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 139, 18, 17), //tgkill|sigaltstack|rt_sigsuspend|rt_sigaction|rt_sigprocmask|rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo |
Paul Lawrence | eabc352 | 2016-11-11 11:33:42 -0800 | [diff] [blame] | 27 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 242, 9, 0), |
| 28 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 203, 5, 0), |
| 29 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 198, 3, 0), |
| 30 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 179, 1, 0), |
Paul Lawrence | be8a2af | 2017-01-25 15:20:52 -0800 | [diff] [blame] | 31 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 178, 13, 12), //setpriority|getpriority|reboot|setregid|setgid|setreuid|setuid|setresuid|getresuid|setresgid|getresgid|setfsuid|setfsgid|times|setpgid|getpgid|getsid|setsid|getgroups|setgroups|uname|sethostname|setdomainname|getrlimit|setrlimit|getrusage|umask|prctl|getcpu|gettimeofday|settimeofday|adjtimex|getpid|getppid|getuid|geteuid|getgid|getegid |
| 32 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 180, 12, 11), //sysinfo |
| 33 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 202, 11, 10), //socket|socketpair|bind|listen |
Paul Lawrence | eabc352 | 2016-11-11 11:33:42 -0800 | [diff] [blame] | 34 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 221, 1, 0), |
Paul Lawrence | be8a2af | 2017-01-25 15:20:52 -0800 | [diff] [blame] | 35 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 217, 9, 8), //connect|getsockname|getpeername|sendto|recvfrom|setsockopt|getsockopt|shutdown|sendmsg|recvmsg|readahead|brk|munmap|mremap |
| 36 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 234, 8, 7), //execve|mmap|fadvise64|swapon|swapoff|mprotect|msync|mlock|munlock|mlockall|munlockall|mincore|madvise |
Paul Lawrence | eabc352 | 2016-11-11 11:33:42 -0800 | [diff] [blame] | 37 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 266, 3, 0), |
| 38 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 260, 1, 0), |
Paul Lawrence | be8a2af | 2017-01-25 15:20:52 -0800 | [diff] [blame] | 39 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 244, 5, 4), //accept4|recvmmsg |
| 40 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 262, 4, 3), //wait4|prlimit64 |
Paul Lawrence | eabc352 | 2016-11-11 11:33:42 -0800 | [diff] [blame] | 41 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 268, 1, 0), |
Paul Lawrence | be8a2af | 2017-01-25 15:20:52 -0800 | [diff] [blame] | 42 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 267, 2, 1), //clock_adjtime |
| 43 | BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 272, 1, 0), //setns|sendmmsg|process_vm_readv|process_vm_writev |
Paul Lawrence | eabc352 | 2016-11-11 11:33:42 -0800 | [diff] [blame] | 44 | BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), |
| 45 | }; |
| 46 | |
| 47 | const size_t arm64_filter_size = sizeof(arm64_filter) / sizeof(struct sock_filter); |