blob: e5dd3c5a035d3e22820dab5f64f4e26ee7935495 [file] [edit]
# Copyright 2022 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 Pixart touchpad
# FW update tool. The update tool 'pix_tpfwup' should only be used through
# minijail with these rules.
# rseq should be first due to frequency and purpose to decrease nptl latency
rseq: 1
openat: 1
mmap: arg2 == PROT_READ || arg2 == PROT_READ|PROT_WRITE || arg2 == PROT_READ|PROT_EXEC
mseal: 1
mprotect: arg2 == PROT_NONE || arg2 == PROT_READ
fstat: 1
newfstatat: 1
getrandom: 1
statx: 1
close: 1
ioctl: 1
read: 1
brk: 1
write: 1
rt_sigaction: 1
set_tid_address: 1
uname: 1
rt_sigreturn: 1
getrlimit: 1
exit_group: 1
faccessat: 1
restart_syscall: 1
munmap: 1
set_robust_list: 1
rt_sigprocmask: 1
exit: 1
fstatfs: 1
gettid: 1
dup: 1
fcntl: 1