crosvm should use minijail fork to eliminate terrible, no-good direct calls to clone.
TODO items:
1) We currently exceed the fd limit for minijail's preservable fds. This should be increased.
2) libminijail unconditionally sets pgid for the parent process to itself. Which is fine if we call crosvm directly, but fails when using vm_launcher:
vm_launcher (process group leader)
|--- crosvm main process (calls minijail_fork)
| ---- crosvm jailed device process
crosvm setting its own pgid removes it from the process group with vm_launcher, which means we end up with isatty(stdio) == true, but we can no longer read, write, or set the terminal to raw mode.
Comment 1 by smbar...@chromium.org
, Nov 1 2017