blob: 6dfd5da59c54e146b697458aaea55eef15f0cb09 [file] [log] [blame]
# Copyright 2019 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.
# This file lists out the seccomp policy for allowed syscalls on cups_proxy.
accept4: 1
bind: 1
brk: 1
clock_getres: 1
clock_gettime: 1
clone: 1
close: 1
connect: 1
epoll_create1: 1
epoll_ctl: 1
epoll_pwait: 1
exit: 1
exit_group: 1
fchmodat: 1
fcntl: 1
fstat: 1
futex: 1
getegid: 1
geteuid: 1
getgid: 1
getpid: 1
getresgid: 1
getresuid: 1
getsockname: 1
gettid: 1
gettimeofday: 1
getuid: 1
listen: 1
lseek: 1
madvise: 1
# Prevent mmap and mprotect region to have PROT_WRITE|PROT_EXEC.
mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
munmap: 1
newfstatat: 1
openat: 1
pipe2: 1
ppoll: 1
prctl: arg0 == PR_SET_NAME
pselect6: 1
read: 1
recvmsg: 1
restart_syscall: 1
rt_sigprocmask: 1
rt_sigreturn: 1
sendmsg: 1
sendto: 1
set_robust_list: 1
setpriority: 1
setsockopt: 1
shutdown: 1
signalfd4: 1
socket: arg0 == AF_UNIX
tgkill: 1
unlinkat: 1
write: 1