diff options
Diffstat (limited to 'seccomp/x86_64/block_device.policy')
-rw-r--r-- | seccomp/x86_64/block_device.policy | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/seccomp/x86_64/block_device.policy b/seccomp/x86_64/block_device.policy index 871a64e..20eca1a 100644 --- a/seccomp/x86_64/block_device.policy +++ b/seccomp/x86_64/block_device.policy @@ -2,45 +2,14 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -close: 1 -dup: 1 -dup2: 1 -exit_group: 1 +@include /usr/share/policy/crosvm/common_device.policy + fallocate: 1 fdatasync: 1 fstat: 1 fsync: 1 ftruncate: 1 -futex: 1 lseek: 1 -# Disallow mmap with PROT_EXEC set. The syntax here doesn't allow bit -# negation, thus the manually negated mask constant. -mmap: arg2 in 0xfffffffb -mprotect: arg2 in 0xfffffffb -madvise: arg2 == MADV_DONTDUMP || arg2 == MADV_DONTNEED -mremap: 1 -munmap: 1 -read: 1 -recvfrom: 1 -sched_getaffinity: 1 -set_robust_list: 1 -sigaltstack: 1 -# Disallow clone's other than new threads. -clone: arg0 & 0x00010000 -write: 1 -eventfd2: 1 -poll: 1 -ppoll: 1 -getpid: 1 -# Allow PR_SET_NAME only. -prctl: arg0 == 15 -restart_syscall: 1 -epoll_create1: 1 -epoll_ctl: 1 -epoll_wait: 1 timerfd_create: 1 timerfd_gettime: 1 timerfd_settime: 1 -# libc free() attempts to open /proc/sys/vm/overcommit_memory -open: return ENOENT -openat: return ENOENT |