crosvm/src
Chirantan Ekbote e1663eeae4 Only change uid/gid when it's not 0
Only change the device uid/gid in the sandbox when it is not 0.
Otherwise, running crosvm as root makes minijail complain:

   libminijail[16370]: useless change to uid 0

BUG=none
TEST=run crosvm as root

Change-Id: Ida4b0e772ed000d3e42f77012af9d2505f64d92a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3141297
Auto-Submit: Chirantan Ekbote <chirantan@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Fergus Dall <sidereal@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2021-09-03 22:08:16 +00:00
..
plugin crosvm: fix needless_borrow clippy warning 2021-08-25 23:02:23 +00:00
argument.rs crosvm: fix needless_borrow clippy warning 2021-08-25 23:02:23 +00:00
crosvm.rs Add virtio-snd device with CRAS backend 2021-09-02 04:29:55 +00:00
error.rs Add virtio-snd device with CRAS backend 2021-09-02 04:29:55 +00:00
gdb.rs Migrate to gdbstub 0.5.0. 2021-08-13 18:30:47 +00:00
linux.rs Only change uid/gid when it's not 0 2021-09-03 22:08:16 +00:00
main.rs fs: Support setting quota project ID 2021-09-03 00:47:25 +00:00
panic_hook.rs Final major RawDescriptor transition. 2020-11-13 02:38:47 +00:00