| # Copyright 2016 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: 1 |
| exit_group: 1 |
| fcntl64: 1 |
| fstat64: 1 |
| fstatat64: 1 |
| futex: 1 |
| getdents64: 1 |
| getegid32: 1 |
| geteuid32: 1 |
| getgid32: 1 |
| getpid: 1 |
| getuid32: 1 |
| lstat: 1 |
| lstat64: 1 |
| # Disallow mmap with PROT_EXEC set. The syntax here doesn't |
| # allow bit negation, so we are using a negated mask as a |
| # constant. |
| mmap2: arg2 in 0xfffffffb |
| mremap: 1 |
| munmap: 1 |
| # Restrict open flags. O_DIRECTORY (0x4000), O_LARGEFILE (0x20000), |
| # and O_CLOEXEC (0x80000) aren't symbols minijail knows, so are |
| # specified directly. |
| open: arg1 in O_RDONLY|O_NONBLOCK|0x4000|0x20000|0x80000 |
| openat: arg2 in O_RDONLY|O_NONBLOCK|0x4000|0x20000|0x80000 |
| read: 1 |
| stat64: 1 |
| write: 1 |