mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
The panic hook calls read_to_string, which relies on lseek internally. Most devices already allow lseek, but add it to the common policy files to ensure that devices can properly panic. BUG=None TEST=compiles Change-Id: I99d6d1d258706874cc04ce550108991631d71706 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3960213 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Commit-Queue: David Stevens <stevensd@chromium.org> Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
20 lines
369 B
Text
20 lines
369 B
Text
# Copyright 2018 The ChromiumOS Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
@include /usr/share/policy/crosvm/common_device.policy
|
|
|
|
chdir: 1
|
|
fstat: 1
|
|
fsync: 1
|
|
ftruncate: 1
|
|
getrandom: 1
|
|
getuid: 1
|
|
mkdir: 1
|
|
newfstatat: 1
|
|
open: 1
|
|
openat: 1
|
|
prctl: arg0 == PR_SET_NAME
|
|
socket: return EACCES
|
|
stat: 1
|
|
statx: 1
|