summary refs log tree commit diff
path: root/sys_util/src/lib.rs
diff options
context:
space:
mode:
authorDylan Reid <dgreid@chromium.org>2017-06-26 18:24:36 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-06-28 00:59:00 -0700
commitfa8c6802b6a392a3dbc6300fabb47eeebf219ed6 (patch)
tree114002ed8b014339c69c25f72b421e6937835bcc /sys_util/src/lib.rs
parentb4af07af9c54e7b5b2f2e55369b9ac74025a6853 (diff)
downloadcrosvm-fa8c6802b6a392a3dbc6300fabb47eeebf219ed6.tar
crosvm-fa8c6802b6a392a3dbc6300fabb47eeebf219ed6.tar.gz
crosvm-fa8c6802b6a392a3dbc6300fabb47eeebf219ed6.tar.bz2
crosvm-fa8c6802b6a392a3dbc6300fabb47eeebf219ed6.tar.lz
crosvm-fa8c6802b6a392a3dbc6300fabb47eeebf219ed6.tar.xz
crosvm-fa8c6802b6a392a3dbc6300fabb47eeebf219ed6.tar.zst
crosvm-fa8c6802b6a392a3dbc6300fabb47eeebf219ed6.zip
io_jail: Overwrite standard I/O FDs
The FDs for stdin, stdout, and stderr shouldn't be left empty.  Just
closing these FDs causes the next open() call from the jailed process to
reuse the 0, 1, or 2 FD.  This confuses basic infrastructure like
println!.

Change-Id: I40ea471b4a011f2be5132e1a0ff50656ae2ec14a
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/549659
Diffstat (limited to 'sys_util/src/lib.rs')
0 files changed, 0 insertions, 0 deletions