crosvm/seccomp/x86_64/serial_device_vvu.policy
Alexandre Courbot 4fec994d63 crosvm: add serial support to "devices" command
Add support for creating serial devices using the `crosvm devices`
command.

BUG=b:217480043
TEST=`crosvm devices --serial hardware=virtio-console,console,stdin,type=stdout,earlycon,vhost=/tmp/vu-serial`
results in a working vhost-user serial device.
TEST=`crosvm devices --serial hardware=virtio-console,console,stdin,type=stdout,earlycon,vhost=0000:00:10.0`
results in a working VVU serial device.

Change-Id: I06fa4c8e27e90fa00c64b38dd25c7e9a91ee77fc
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3762975
Reviewed-by: Morg <morg@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Tested-by: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
2022-08-02 09:21:30 +00:00

10 lines
373 B
Text

# Copyright 2022 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.
# Policy file for a serial device used as a vvu backend.
@include /usr/share/policy/crosvm/vvu.policy
@include /usr/share/policy/crosvm/common_device.policy
@include /usr/share/policy/crosvm/serial.policy