crosvm/base
Daniel Verkamp 1087e85b80 base, sys_util: make clone_fd function private
This function is used internally in the SafeDescriptor code, but it
should not be needed outside its module. Remove its pub to make it
harder to use by accident.

Users can call SafeDescriptor::try_from() to clone a descriptor and
convert the result into a SafeDescriptor.

BUG=None
TEST=cargo build

Change-Id: Ibc0e439b993d1ead0c0bc356da312a1d8f28a97f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3546571
Reviewed-by: Noah Gold <nkgold@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2022-03-29 21:00:12 +00:00
..
base_poll_token_derive Refactoring: Copy sys_util(_core) into base 2022-03-21 19:52:56 +00:00
src base, sys_util: make clone_fd function private 2022-03-29 21:00:12 +00:00
.build_test_serial
build.rs Refactoring: Move win_(sys_)util 2022-03-22 22:23:41 +00:00
Cargo.toml Enable vmm_vhost windows tests 2022-03-29 20:29:54 +00:00