2022-09-13 17:55:17 +00:00
|
|
|
# Copyright 2019 The ChromiumOS Authors
|
2019-08-13 18:20:14 +00:00
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2022-06-15 07:58:14 +00:00
|
|
|
# Syscalls specific to the serial device. This policy file is not meant to be used directly, but
|
|
|
|
# rather to be included from another one.
|
2019-11-15 01:48:44 +00:00
|
|
|
|
2020-07-08 07:19:55 +00:00
|
|
|
connect: 1
|
|
|
|
bind: 1
|
2019-11-15 01:48:44 +00:00
|
|
|
open: return ENOENT
|
|
|
|
openat: return ENOENT
|
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-07-06 09:40:25 +00:00
|
|
|
prctl: arg0 == PR_SET_NAME || arg0 == PR_SET_PDEATHSIG
|