blob: 7855b2973cfb6dbce4692642635e98f37e5bce61 [file] [log] [blame]
# Copyright 2019 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# rseq should be first due to frequency and purpose to decrease nptl latency
rseq: 1
access: 1
bind: 1
brk: 1
clone: 1
close: 1
exit: 1
exit_group: 1
faccessat: 1
faccessat2: 1
fcntl64: 1
fdatasync: 1
fstat64: 1
fstatat64: 1
getdents: 1
getdents64: 1
getpid: 1
# Filter arg2 to disallow GRND_RANDOM (2).
getrandom: arg2 in 0xfffffffd
getsockname: 1
gettid: 1
_llseek: 1
lstat64: 1
madvise: 1
# Prevent PROT_EXEC
mmap2: arg2 in 0xfffffffb
# Prevent PROT_EXEC
mprotect: arg2 in 0xfffffffb
munmap: 1
_newselect: 1
pselect6: 1
pselect6_time64: 1
openat: 1
pipe: 1
pipe2: 1
poll: 1
pread64: 1
pwrite64: 1
read: 1
readlink: 1
readlinkat: 1
recvfrom: 1
rt_sigaction: 1
rt_sigprocmask: 1
rt_sigreturn: 1
sendto: 1
set_robust_list: 1
setsockopt: 1
set_tid_address: 1
sigreturn: 1
# Allow AF_UNIX or AF_QIPCRTR
socket: arg0 == AF_UNIX || arg0 == AF_QIPCRTR
symlink: 1
symlinkat: 1
statx: 1
ugetrlimit: 1
uname: 1
write: 1