mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
51200519a2
Some devices need to have their current uid mapped in their sandbox for bind mounts to work as expected. Currently crosvm looks up the uid/gid for "crosvm" and maps that. This logic is dubious anyway, since crosvm should be using whatever user/group it was started under rather then trying to switch (which is a priviliged operation), but putting concierge in a user namespace breaks it entierly because the crosvm user gets remapped to a different numeric value. Replace the current approach with mapping the current euid/egid, whatever it may be. BUG=chromium:1240116 TEST=Manually tested Change-Id: I0e9b95ed04834da1adedb72bee52ac4359f06041 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3105907 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Allen Webb <allenwebb@google.com> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> |
||
---|---|---|
.. | ||
poll_token_derive | ||
src | ||
.build_test_serial | ||
Cargo.toml |