blob: e35572f583d14f439d5de4537849b3aaf56cab69 [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
openat: 1
close: 1
mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
mseal: 1
mprotect: arg2 == PROT_READ || arg2 == PROT_NONE
newfstatat: 1
getdents64: 1
brk: 1
munmap: 1
execve: 1
faccessat: 1
read: 1
set_tid_address: 1
set_robust_list: 1
prlimit64: 1
getuid: 1
geteuid: 1
getrandom: arg2 in ~GRND_RANDOM
write: 1
exit_group: 1
restart_syscall: 1
exit: 1
rt_sigreturn: 1
clock_gettime: 1
clock_nanosleep: 1