blob: f456bdada2cbc73a341e9c28c40e88b788ded35b [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.
# This file lists out the seccomp policy.
# The following are allowed syscalls for runtime_probe skeleton + DBus
clock_gettime: 1
clock_gettime64: 1
rt_sigaction: 1
epoll_create1: 1
getresuid32: 1
uname: 1
brk: 1
connect: 1
getsockname: 1
close: 1
poll: 1
stat64: 1
_newselect: 1
clock_getres: 1
clock_getres_time64: 1
write: 1
getegid32: 1
rt_sigprocmask: 1
send: 1
access: 1
faccessat: 1
faccessat2: 1
ARM_set_tls: 1
_llseek: 1
recvmsg: 1
signalfd4: 1
set_tid_address: 1
ugetrlimit: 1
getuid32: 1
read: 1
readlink: 1
openat: 1
getgid32: 1
set_robust_list: 1
gettimeofday: 1
futex: 1
futex_time64: 1
munmap: 1
fcntl64: 1
gettid: 1
geteuid32: 1
fstat64: 1
fstatat64: 1
statx: 1
pipe2: 1
epoll_ctl: 1
getresgid32: 1
epoll_wait: 1
sendmsg: 1
fstatfs64: 1
fstatfs: 1
exit: 1
exit_group: 1
restart_syscall: 1
rt_sigreturn: 1
ioctl: arg0 == 0 && arg1 == TCGETS
lstat64: 1
prlimit64: 1
mmap2: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
mprotect: arg2 == PROT_READ || arg2 == PROT_NONE
socket: arg0 == AF_UNIX && arg1 == SOCK_DGRAM|SOCK_CLOEXEC && arg2 == 0 || arg0 == AF_UNIX && arg1 == SOCK_STREAM|SOCK_CLOEXEC && arg2 == 0