| # Copyright 2019 The ChromiumOS Authors | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| # Use the run_biod_strace.sh script to generate an initial list of syscalls. | |
| # rseq should be first due to frequency and purpose to decrease nptl latency | |
| rseq: 1 | |
| access: 1 | |
| faccessat: 1 | |
| faccessat2: 1 | |
| brk: 1 | |
| chown: 1 | |
| clock_getres: 1 | |
| clock_gettime: 1 | |
| clock_nanosleep: 1 | |
| close: 1 | |
| connect: 1 | |
| epoll_create1: 1 | |
| epoll_ctl: 1 | |
| epoll_wait: 1 | |
| exit: 1 | |
| exit_group: 1 | |
| fcntl: 1 | |
| fdatasync: 1 | |
| flock: 1 | |
| fstat: 1 | |
| getdents: 1 | |
| getdents64: 1 | |
| getegid: 1 | |
| geteuid: 1 | |
| getgid: 1 | |
| getpid: 1 | |
| getrandom: arg2 in ~GRND_RANDOM | |
| getresgid: 1 | |
| getresuid: 1 | |
| getsockname: 1 | |
| gettid: 1 | |
| gettimeofday: 1 | |
| getuid: 1 | |
| # ioctl: | |
| # UI_DEV_CREATE: 0x5501 | |
| # UI_DEV_DESTROY: 0x5502 | |
| # UI_DEV_SETUP: 0x405c5503 | |
| # UI_SET_EVBIT: 0x40045564 | |
| # UI_SET_KEYBIT: 0x40045565 | |
| # CROS_EC_DEV_IOCXCMD_V2: 0xc014ec00 | |
| # CROS_EC_DEV_IOCEVENTMASK_V2: 0xec02 | |
| ioctl: arg1 == 0x5501 || arg1 == 0x5502 || arg1 == 0x405c5503 || arg1 == 0x40045564 || arg1 == 0x40045565 || arg1 == 0xc014ec00 || arg1 == 0xec02 | |
| lseek: 1 | |
| lstat: 1 | |
| # madvise, mlock, munlock: For brillo::SecureVector allocator | |
| madvise: 1 | |
| mlock: 1 | |
| # Don't allow execute and write at the same time | |
| mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE | |
| mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE | |
| munlock: 1 | |
| munmap: 1 | |
| mkdir: 1 | |
| nanosleep: 1 | |
| newfstatat: 1 | |
| openat: 1 | |
| pipe2: 1 | |
| poll: 1 | |
| process_vm_readv: 1 | |
| pwrite64: 1 | |
| read: 1 | |
| recvmsg: 1 | |
| rename: 1 | |
| restart_syscall: 1 | |
| rt_sigreturn: 1 | |
| sendmsg: 1 | |
| sendto: 1 | |
| socket: arg0 == AF_UNIX | |
| stat: 1 | |
| readlink: 1 | |
| readlinkat: 1 | |
| symlink: 1 | |
| umask: 1 | |
| uname: 1 | |
| unlink: 1 | |
| unlinkat: 1 | |
| write: 1 | |
| # rt_sigprocmask, tgkill: Used for direct abort and CHECK()/LOG(FATAL). | |
| rt_sigprocmask: 1 | |
| tgkill: 1 | |
| # futex: Used by CHECK()/LOG(FATAL). | |
| futex: 1 | |
| fstatfs: 1 | |
| sysinfo: 1 | |
| eventfd2: 1 |