| # Copyright 2019 The Chromium OS Authors. All rights reserved. |
| # 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. |
| |
| access: 1 |
| brk: 1 |
| clock_getres: 1 |
| clock_gettime: 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 |
| getegid: 1 |
| geteuid: 1 |
| getgid: 1 |
| getpid: 1 |
| 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::SecureBlob 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 |
| openat: 1 |
| pipe2: 1 |
| poll: 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 |
| symlink: 1 |
| umask: 1 |
| unlink: 1 |
| write: 1 |
| uname: 1 |