open_then_run: open directory as path fd

For using the FD with openat(2) or mkdirfd(2), it has to be a path FD.
No need to open readonly since most flags are ignored with O_PATH.

Bug: 203251769
Test: AuthFsHostTest

Change-Id: Ide1cb65f6354c37776174d1177450565616c600e
2 files changed
tree: 7e09b97aeffcbf2b49e4de66225b680a0e6898b8
  1. apex/
  2. apkdmverity/
  3. apkverify/
  4. authfs/
  5. binder_common/
  6. compos/
  7. demo/
  8. docs/
  9. idsig/
  10. javalib/
  11. launcher/
  12. libs/
  13. microdroid/
  14. microdroid_manager/
  15. pvmfw/
  16. tests/
  17. virtualizationservice/
  18. vm/
  19. vmconfig/
  20. zipfuse/
  21. .clang-format
  22. Android.bp
  23. OWNERS
  24. PREUPLOAD.cfg
  25. README.md
  26. 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.