blob: a519b8fcd15e776af5c6e450198de481ffcd60d7 [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 for allowed syscalls on tpm2-simulator
gettid: 1
getpid: 1
getuid: 1
getgid: 1
geteuid: 1
getegid: 1
getresuid: 1
getresgid: 1
epoll_create1: 1
epoll_wait: 1
epoll_ctl: 1
poll: 1
read: 1
write: 1
close: 1
mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
mremap: 1
munmap: 1
brk: 1
lseek: 1
faccessat: 1
faccessat2: 1
prlimit64: 1
madvise: 1
exit: 1
exit_group: 1
rt_sigreturn: 1
rt_sigprocmask: 1
restart_syscall: 1
clock_getres: 1
gettimeofday: 1
clock_gettime: 1
nanosleep: 1
clock_nanosleep: 1
futex: 1
getrandom: 1
# tgkill is used by abort() and CHECK()/LOG(FATAL).
tgkill: 1