diff options
author | Zach Reizner <zachr@google.com> | 2019-08-13 11:20:14 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-10 02:09:13 +0000 |
commit | a8adff0ff14f66570a3aa86f6106b55081526be1 (patch) | |
tree | 515ed01d01828a8622bac5203d508da708db5d41 /aarch64 | |
parent | 0b6f02fea7716ec5752555ea44aafed214b58faa (diff) | |
download | crosvm-a8adff0ff14f66570a3aa86f6106b55081526be1.tar crosvm-a8adff0ff14f66570a3aa86f6106b55081526be1.tar.gz crosvm-a8adff0ff14f66570a3aa86f6106b55081526be1.tar.bz2 crosvm-a8adff0ff14f66570a3aa86f6106b55081526be1.tar.lz crosvm-a8adff0ff14f66570a3aa86f6106b55081526be1.tar.xz crosvm-a8adff0ff14f66570a3aa86f6106b55081526be1.tar.zst crosvm-a8adff0ff14f66570a3aa86f6106b55081526be1.zip |
devices: jail serial device
This change plumbs the jail throughout the arch specific device creation process. It also adds a custom callback support for the ProxyDevice so that the main process can interrupt the child serial process when it has incoming bytes. TEST=crosvm run BUG=None Change-Id: I6af7d2cb0acbba9bf42eaeeb294cee2bce4a1f36 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1752589 Reviewed-by: Dylan Reid <dgreid@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Tested-by: Zach Reizner <zachr@chromium.org> Commit-Queue: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'aarch64')
-rw-r--r-- | aarch64/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/aarch64/src/lib.rs b/aarch64/src/lib.rs index d21d70d..69ae76c 100644 --- a/aarch64/src/lib.rs +++ b/aarch64/src/lib.rs @@ -195,6 +195,7 @@ impl arch::LinuxArch for AArch64 { mut components: VmComponents, _split_irqchip: bool, serial_parameters: &BTreeMap<u8, SerialParameters>, + serial_jail: Option<Minijail>, create_devices: F, ) -> Result<RunnableLinuxVm> where @@ -254,6 +255,7 @@ impl arch::LinuxArch for AArch64 { &com_evt_1_3, &com_evt_2_4, &serial_parameters, + serial_jail, ) .map_err(Error::CreateSerialDevices)?; |