blob: f8080dcc3b81425dddd40654d6fc3d071163c416 [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: arg2 in ~GRND_RANDOM
fstat: 1
close: 1
brk: 1
# TODO: filter ioctl.
ioctl: 1
exit_group: 1
restart_syscall: 1
# TODO (b/315515591): Remove execve from allow list after we have tests to
# ensure no regression.
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
readlinkat: 1
pselect6: 1
getdents64: 1
lseek: 1
clock_nanosleep: 1
prlimit64: 1
inotify_init1: 1
inotify_add_watch: 1
gettid: 1
clock_gettime: 1