blob: 79b94f6bafdc40307a707e9ec83c7438ec074437 [file] [log] [blame]
# 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.
access: 1
arch_prctl: 1
brk: 1
clock_nanosleep: 1
close: 1
execve: 1
exit: 1
exit_group: 1
fstat: 1
futex: 1
getdents64: 1
getdents: 1
gettimeofday: 1
getrlimit: 1
# ioctl: arg1 == HIDIOCSFEATURE(64) || arg1 == HIDIOCSFEATURE(1031)
# || arg1 == HIDIOCGRAWNAME(256) || arg1 == HIDIOCGRAWINFO
ioctl: arg1 == 0xc0404806 || arg1 == 0xc4074806 || \
arg1 == 0x81004804 || arg1 == 0x80084803
lseek: 1
mmap: 1
mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
munmap: 1
nanosleep: 1
open: 1
openat: 1
prlimit64: 1
read: 1
readlink: 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