crosvm/arch
Fergus Dall 204d9f8bb4 crosvm: Shorten socket paths using /proc/self/fd
By opening the directory containing a socket we can use
/proc/self/fd/%d/ to get a shorter path to that socket that can fit in
the 108 character limit when the original did not.

This allows us to increase the maximum size of VM names from 21 to 63
characters.

BUG=chromium:1144639
TEST=vmc start {61 character name} - rejected
TEST=vmc start {60 character name} - works

Cq-Depend: 2517276
Disallow-Recycled-Builds: test-failures
Change-Id: Id5aba6372e3ef7840406ddf6e7553a459824c9fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2519335
Tested-by: Fergus Dall <sidereal@google.com>
Commit-Queue: Fergus Dall <sidereal@google.com>
Reviewed-by: Nicholas Verne <nverne@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2020-11-12 10:15:53 +00:00
..
src crosvm: Shorten socket paths using /proc/self/fd 2020-11-12 10:15:53 +00:00
Cargo.toml linux: Support GDB remote serial protocol for x86_64 2020-11-12 08:47:59 +00:00