blob: 16a78095849e3b5aa50919cdce2087c025d707c1 [file] [log] [blame]
# 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
futex: 1
getdents64: 1
getegid32: 1
geteuid32: 1
getgid32: 1
getpid: 1
getuid32: 1
lstat: 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
mprotect: 1
mremap: 1
munmap: 1
newfstatat: 1
# Restrict open flags. O_DIRECTORY (0x10000), O_LARGEFILE (0x8000),
# and O_CLOEXEC (0x80000) aren't symbols minijail knows, so are
# specified directly.
open: arg1 in O_RDONLY|O_NONBLOCK|0x10000|0x8000|0x80000
openat: arg2 in O_RDONLY|O_NONBLOCK|0x10000|0x8000|0x80000
open: 1
openat: 1
read: 1
stat64: 1
uname: 1
write: 1