| # Copyright (c) 2012 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. |
| |
| access: 1 |
| brk: 1 |
| close: 1 |
| exit_group: 1 |
| fcntl: 1 |
| fstat: 1 |
| futex: 1 |
| getdents:1 |
| getegid: 1 |
| geteuid: 1 |
| getgid: 1 |
| getpid: 1 |
| getuid: 1 |
| lstat: 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 (0x10000) and O_CLOEXEC (0x80000) |
| # aren't symbols minijail knows, so are specified directly. |
| open: arg1 in O_RDONLY|O_NONBLOCK|0x10000|0x80000 |
| openat: arg2 in O_RDONLY|O_NONBLOCK|0x10000|0x80000 |
| read: 1 |
| stat: 1 |
| write: 1 |