mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-01-29 03:35:36 +00:00
0a4f280e3a
Add newfstatat for x86 and fstatat64 for arm to the seccomp policy file for the 9p device and server program. BUG=chromium:886535 TEST=`vmc share termina foo` and then `ls /mnt/shared` inside the VM works Change-Id: I6871f54ae885e080dca0ea5751987d59c55a59d6 Signed-off-by: Chirantan Ekbote <chirantan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1232556 Reviewed-by: Stephen Barber <smbarber@chromium.org>
61 lines
1.1 KiB
Text
61 lines
1.1 KiB
Text
# 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.
|
|
|
|
read: 1
|
|
write: 1
|
|
lstat: 1
|
|
stat: 1
|
|
open: 1
|
|
close: 1
|
|
fstat: 1
|
|
getdents: 1
|
|
ioctl: arg1 == FIOCLEX
|
|
pwrite64: 1
|
|
pread64: 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
|
|
utimensat: 1
|
|
rt_sigaction: 1
|
|
statfs: 1
|
|
sigaltstack: 1
|
|
munmap: 1
|
|
brk: 1
|
|
accept4: 1
|
|
sched_getaffinity: 1
|
|
getpid: 1
|
|
getrlimit: 1
|
|
fcntl: 1
|
|
set_robust_list: 1
|
|
link: 1
|
|
socket: arg0 == AF_UNIX || arg0 == AF_VSOCK
|
|
restart_syscall: 1
|
|
exit_group: 1
|
|
rt_sigreturn: 1
|
|
lseek: 1
|
|
uname: 1
|
|
connect: 1
|
|
rt_sigprocmask: 1
|
|
arch_prctl: 1
|
|
access: 1
|
|
exit: 1
|
|
set_tid_address: 1
|
|
listen: 1
|
|
# Disallow clone's other than new threads.
|
|
clone: arg0 & 0x00010000
|
|
unlink: 1
|
|
madvise: 1
|
|
futex: 1
|
|
bind: 1
|
|
rmdir: 1
|
|
# Calling fchown with -1 as the uid/gid will change the ctime but do nothing else.
|
|
fchown: arg1 == 0xffffffff && arg2 == 0xffffffff
|
|
fsync: 1
|
|
fdatasync: 1
|
|
ftruncate: 1
|
|
mkdir: 1
|
|
mremap: 1
|
|
rename: 1
|
|
newfstatat: 1
|