mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-10 12:09:31 +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>
18 lines
355 B
Text
18 lines
355 B
Text
# Copyright 2019 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
|
|
mkdirat: 1
|
|
newfstatat: 1
|
|
openat: 1
|
|
prctl: arg0 == PR_SET_NAME
|
|
socket: return EACCES
|
|
statx: 1
|