blob: 70a5d914b5c06814ae28d9b9df26e36e454e8cc8 [file] [log] [blame]
# Copyright 2021 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.
# rseq should be first due to frequency and purpose to decrease nptl latency
rseq: 1
open: 1
openat: 1
read: 1
# Don't allow mmap2 with both PROT_WRITE and PROT_EXEC.
mmap2: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
stat64: 1
close: 1
fstat64: 1
_newselect: 1
# Don't allow mprotect with PROT_EXEC.
mprotect: arg2 in ~PROT_EXEC
munmap: 1
gettimeofday: 1
_llseek: 1
write: 1
rt_sigprocmask: 1
brk: 1
execve: 1
fcntl64: 1
rt_sigaction: 1
send: 1
poll: 1
# Allow domain == PF_FILE || domain == PF_INET || domain == PF_NETLINK
socket: arg0 == 1 || arg0 == 2 || arg0 == 16
uname: 1
connect: 1
access: 1
ARM_set_tls: 1
wait4: 1
exit_group: 1
getuid32: 1
clone: 1
# Allow request == RTC_SET_TIME || request == FIONREAD
ioctl: arg1 == 0x4024700a || arg1 == 0x541b
setgid32: 1
recvfrom: 1
setresuid32: 1
setgroups32: 1
settimeofday: 1
restart_syscall: 1
setsockopt: 1
setresgid32: 1
nanosleep: 1
clock_nanosleep: 1
clock_nanosleep_time64: 1
exit: 1
rt_sigreturn: 1
rename: 1
bind: 1
clock_gettime: 1
clock_gettime64: 1
clock_settime: 1
clock_settime64: 1
futex: 1
futex_time64: 1
ugetrlimit: 1
set_robust_list: 1
set_tid_address: 1
getpid: 1
prlimit64: arg2 == 0 && arg3 != 0
clock_adjtime64: 1