| # Copyright 2018 The Chromium OS Authors. All rights reserved. |
| # 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. |
| |
| mmap: arg2 == PROT_READ || arg2 == PROT_READ|PROT_WRITE || arg2 == PROT_READ|PROT_EXEC |
| open: 1 |
| openat: 1 |
| mprotect: arg2 == PROT_NONE || arg2 == PROT_READ |
| close: 1 |
| fstat: 1 |
| newfstatat: 1 |
| stat: 1 |
| read: 1 |
| ioctl: 1 |
| brk: 1 |
| write: 1 |
| restart_syscall: 1 |
| exit: 1 |
| rt_sigreturn: 1 |
| exit_group: 1 |
| arch_prctl: 1 |
| access: 1 |
| munmap: 1 |
| fstatfs: 1 |