blob: b53f09da284ea1caf90f07bd4bf039e4c3a5551f [file] [edit]
# Copyright 2023 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 ILITEK FW update
# tool, which should only be used through minijail with listed rules.
faccessat: 1
brk: 1
clock_nanosleep: 1
close: 1
execve: 1
exit: 1
exit_group: 1
fstat: 1
futex: 1
getdents64: 1
gettimeofday: 1
getrlimit: 1
# ioctl: arg1 == HIDIOCSFEATURE(64) || arg1 == HIDIOCGRAWINFO
# || arg1 == HIDIOCGRAWNAME(256)
ioctl: arg1 == 0xc0404806 || arg1 == 0x80084803 || arg1 == 0x81004804
lseek: 1
mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
mmap: 1
mseal: 1
munmap: 1
nanosleep: 1
openat: 1
prlimit64: 1
read: 1
readlinkat: 1
restart_syscall: 1
rt_sigaction: 1
rt_sigprocmask: 1
rt_sigreturn: 1
set_robust_list: 1
set_tid_address: 1
uname: 1
write: 1
newfstatat: 1
rseq: 1
getrandom: 1