mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
This is used in Rust 1.40.0's libstd in place of stat/fstat; update the whitelists to allow the new syscall as well. BUG=chromium:1042461 TEST=`crosvm disk resize` does not trigger seccomp failure Change-Id: Ia3f0e49ee009547295c7af7412dfb5eb3ac1efcb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2003685 Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
31 lines
546 B
Text
31 lines
546 B
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.
|
|
|
|
open: 1
|
|
openat: 1
|
|
|
|
@include /usr/share/policy/crosvm/common_device.policy
|
|
|
|
pread64: 1
|
|
pwrite64: 1
|
|
lstat64: 1
|
|
stat64: 1
|
|
statx: 1
|
|
fstat64: 1
|
|
ioctl: arg1 == FIOCLEX
|
|
getdents64: 1
|
|
fdatasync: 1
|
|
fsync: 1
|
|
mkdir: 1
|
|
rmdir: 1
|
|
rename: 1
|
|
writev: 1
|
|
link: 1
|
|
unlink: 1
|
|
socket: arg0 == AF_UNIX
|
|
utimensat: 1
|
|
ftruncate64: 1
|
|
fchown: arg1 == 0xffffffff && arg2 == 0xffffffff
|
|
statfs64: 1
|
|
fstatat64: 1
|