mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 17:44:10 +00:00
5d0617cd88
The TPM device was changed to manually include an edited subset of
common_device.policy in commit 25a86d99cc
("tpm: Update tpm device
policy to support libtpm2") because common_device.policy included rules
for open and openat at the time, and the TPM device needed to override
those rules. Now that common_device.policy no longer defines rules for
open and openat, it is safe to include the common policy instead of
duplicating it.
BUG=None
TEST=build with features=tpm and run with --software-tpm
Change-Id: Ia79d63fcf2cd2c5303384f4d0607b3b543406098
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3482029
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
21 lines
401 B
Text
21 lines
401 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.
|
|
|
|
@include /usr/share/policy/crosvm/common_device.policy
|
|
|
|
chdir: 1
|
|
fstat: 1
|
|
fsync: 1
|
|
ftruncate: 1
|
|
getrandom: 1
|
|
getuid: 1
|
|
lseek: 1
|
|
mkdir: 1
|
|
newfstatat: 1
|
|
open: 1
|
|
openat: 1
|
|
prctl: arg0 == PR_SET_NAME
|
|
socket: return EACCES
|
|
stat: 1
|
|
statx: 1
|