crosvm/vm_control
Daniel Verkamp 441b6c71f0 vm_control: use open_file() for /proc/self/fd handling
Replace an open-coded version of base::open_file() to simplify the
vm_control code that opens USB devfs files, and improve the error
message when opening the device fails.

Also clean up unused ModifyUsbError variants while we're here.

BUG=b:213152502
TEST=Share USB device with Crostini on trogdor

Change-Id: I9d220487a77a0b83fbc1602f65455e6f384f4abe
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3706097
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Noah Gold <nkgold@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2022-06-15 19:44:51 +00:00
..
src vm_control: use open_file() for /proc/self/fd handling 2022-06-15 19:44:51 +00:00
Cargo.toml vm_control: Upstream windows patches and enable tests 2022-06-13 17:34:44 +00:00