blob: a017b196ec2259c8825b0aa970293ce2a536ada1 [file] [edit]
# Copyright 2019 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 the syscalls used by the Synaptics touch FW
# updater tool rmi4update when querying a device to see what its current
# FW version is. To actually perform an update, more syscalls are needed
# and are supplied in a different policy file.
# rseq should be first due to frequency and purpose to decrease nptl latency
rseq: 1
openat: 1
mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
mseal: 1
mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
write: 1
newfstatat: 1
getrandom: 1
fstat: 1
close: 1
brk: 1
# TODO: filter ioctl.
ioctl: 1
exit_group: 1
restart_syscall: 1
execve: 1
munmap: 1
read: 1
faccessat: 1
faccessat2: 1
exit: 1
rt_sigreturn: 1
fstatfs: 1
set_tid_address: 1
uname: 1
set_robust_list: 1
getxattr: 1
readlinkat: 1
getrlimit: 1
pselect6: 1
prlimit64: 1
getdents64: 1
gettid: 1
clock_nanosleep: 1