blob: a8d71932d3c129f36562070c3bc643bf8c0e3ffe [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_system_filter[] = {
Jerry Zhang8dc4ef92017-05-10 15:19:00 -07008BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 0, 0, 32),
Josh Gaode9262e2017-04-18 16:05:39 -07009BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 220, 15, 0),
Paul Lawrence7ea40902017-02-14 13:32:23 -080010BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 101, 7, 0),
11BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 43, 3, 0),
Paul Lawrenceeabc3522016-11-11 11:33:42 -080012BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 19, 1, 0),
Jerry Zhang8dc4ef92017-05-10 15:19:00 -070013BPF_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
Josh Gaode9262e2017-04-18 16:05:39 -070014BPF_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
Paul Lawrenceeabc3522016-11-11 11:33:42 -080015BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 59, 1, 0),
Josh Gaode9262e2017-04-18 16:05:39 -070016BPF_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
17BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 99, 23, 22), //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|futex
Paul Lawrenceeabc3522016-11-11 11:33:42 -080018BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 198, 3, 0),
Paul Lawrence7ea40902017-02-14 13:32:23 -080019BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 105, 1, 0),
Josh Gaode9262e2017-04-18 16:05:39 -070020BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 104, 20, 19), //nanosleep|getitimer|setitimer
21BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 180, 19, 18), //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|restart_syscall|kill|tkill|tgkill|sigaltstack|rt_sigsuspend|rt_sigaction|rt_sigprocmask|rt_sigpending|rt_sigtimedwait|rt_sigqueueinfo|rt_sigreturn|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|gettid|sysinfo
22BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 203, 1, 0),
23BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 202, 17, 16), //socket|socketpair|bind|listen
24BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 217, 16, 15), //connect|getsockname|getpeername|sendto|recvfrom|setsockopt|getsockopt|shutdown|sendmsg|recvmsg|readahead|brk|munmap|mremap
25BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 266, 7, 0),
26BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 240, 3, 0),
27BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 226, 1, 0),
28BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 224, 12, 11), //clone|execve|mmap|fadvise64
29BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 234, 11, 10), //mprotect|msync|mlock|munlock|mlockall|munlockall|mincore|madvise
30BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 260, 1, 0),
31BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 244, 9, 8), //rt_tgsigqueueinfo|perf_event_open|accept4|recvmmsg
32BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 262, 8, 7), //wait4|prlimit64
33BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 281, 3, 0),
34BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 274, 1, 0),
35BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 272, 5, 4), //clock_adjtime|syncfs|setns|sendmmsg|process_vm_readv|process_vm_writev
36BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 280, 4, 3), //sched_setattr|sched_getattr|renameat2|seccomp|getrandom|memfd_create
37BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 284, 1, 0),
38BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 282, 2, 1), //execveat
39BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 288, 1, 0), //mlock2|copy_file_range|preadv2|pwritev2
Paul Lawrenceeabc3522016-11-11 11:33:42 -080040BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW),
41};
42
Victor Hsieh4f02dd52017-12-20 09:19:22 -080043const size_t arm64_system_filter_size = sizeof(arm64_system_filter) / sizeof(struct sock_filter);