blob: e554cf38bb2b031fe3e9f7e6de498a05e22b9a63 [file] [log] [blame]
# Copyright 2020 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.
clock_gettime: 1
clock_getres: 1
clock_nanosleep: 1
gettimeofday: 1
nanosleep: 1
ppoll: 1
poll: 1
# Opens /proc/self/stat
openat: 1
close: 1
lseek: 1
read: 1
readv: 1
write: 1
writev: 1
readlink: 1
fdatasync: 1
vmsplice: 1
# x64
stat: 1
fstat: 1
lstat: 1
ftruncate: 1
# Memory management system calls.
brk: 1
mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
munmap: 1
mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
mremap: arg3 in ~MREMAP_FIXED
madvise: 1
# Socket system calls.
socket: arg0 == AF_UNIX
sendmsg: 1
recvmsg: 1
shutdown: 1
getsockopt: 1
setsockopt: 1
getsockname: 1
# Only accepts incoming connections.
accept: 1
bind: 1
listen: 1
getpid: 1
gettid: 1
geteuid: 1
getuid: 1
getgid: 1
futex: 1
exit: 1
exit_group: 1
# Allow signal to self.
kill: arg0 == 0
fcntl: 1
# Check /etc/ld.so.preload
access: 1
faccessat: 1
# ARCH_SETFS
arch_prctl: 1
clone: 1
eventfd2: 1
ioctl: arg1 == TCGETS
memfd_create: 1
# Set stack limit for the thread.
prlimit64: 1
restart_syscall: 1
rt_sigaction: 1
rt_sigprocmask: 1
rt_sigreturn: 1
set_robust_list: 1
set_tid_address: 1
timer_create: 1
timer_delete: 1
timer_settime: 1
uname: 1
# Remove the stale socket file.
unlink: 1
# Need to set socket permissions.
chown: 1
chmod: 1