| # Copyright 2018 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. |
| |
| brk: 1 |
| close: 1 |
| execve: 1 |
| exit: 1 |
| exit_group: 1 |
| faccessat: 1 |
| fcntl: 1 |
| fstat: 1 |
| futex: 1 |
| getdents64: 1 |
| getegid: 1 |
| geteuid: 1 |
| getgid: 1 |
| getpid: 1 |
| getrandom: 1 |
| getrlimit: 1 |
| getuid: 1 |
| mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE |
| mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE |
| mremap: 1 |
| munmap: 1 |
| newfstatat: 1 |
| # Restrict open flags. O_DIRECTORY (0x4000), O_LARGEFILE (0x20000), |
| # and O_CLOEXEC (0x80000) aren't symbols minijail knows, so are |
| # specified directly. |
| openat: arg2 in O_RDONLY|O_NONBLOCK|0x4000|0x20000|0x80000 |
| prlimit64: arg2 == 0 && arg3 != 0 |
| read: 1 |
| rt_sigaction: 1 |
| rt_sigprocmask: 1 |
| set_tid_address: 1 |
| set_robust_list: 1 |
| write: 1 |