blob: 830873882c92b685c9db5cd2b760c3d0fcb8d754 [file] [edit]
# Copyright 2024 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# These seccomp rules specify only the syscalls used by the Weida wdt_util
# tool.
# The updater wdt_util should only be used through minijail with these rules.
# rseq should be first due to frequency and purpose to decrease nptl latency
rseq: 1
# ioctl:
# I2C_FUNCS: 0x705
# I2C_RDWR: 0x707
ioctl: arg1 == 0x705 || arg1 == 0x707
clock_nanosleep: 1
clock_gettime: 1
write: 1
openat: 1
close: 1
newfstatat: 1
getdents64: 1
mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
mseal: 1
mprotect: arg2 == PROT_READ || arg2 == PROT_NONE
read: 1
munmap: 1
brk: 1
readlinkat: 1
lseek: 1
execve: 1
faccessat: 1
set_tid_address: 1
set_robust_list: 1
prlimit64: 1
getrandom: arg2 in ~GRND_RANDOM
getuid: 1
geteuid: 1
exit_group: 1
restart_syscall: 1
exit: 1
rt_sigreturn: 1