open_then_run: Hold fd with OwnedFd instead of File/Dir

Stop using Dir from the nix crate. As we're now holding the FD by
OwnedFd, Dir doesn't allow us to transfer out the FD ownership.

Test: TH
Bug: 243500154
Change-Id: Ic5f2ead12f71c4cd2d8b34be8bd9dd548f49a87b
2 files changed
tree: ac8623167b44d0bc7e700f1a47c792d95bac194f
  1. .prebuilt_info/
  2. apex/
  3. apkdmverity/
  4. authfs/
  5. avmd/
  6. compos/
  7. demo/
  8. docs/
  9. javalib/
  10. launcher/
  11. libs/
  12. microdroid/
  13. microdroid_manager/
  14. pvmfw/
  15. rialto/
  16. tests/
  17. virtualizationservice/
  18. vm/
  19. vmbase/
  20. vmclient/
  21. zipfuse/
  22. .clang-format
  23. .gitignore
  24. Android.bp
  25. OWNERS
  26. PREUPLOAD.cfg
  27. README.md
  28. TEST_MAPPING
README.md

Virtualization

This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.