Go to file
Victor Hsieh de76d90b76 Don't mount the extra apk if VM isn't given one
Extra APK is given to the VM when it boots (via various of
vm_config*.json) depending on whether the build manifest APK exists or
not. On the request, the directory FD of /system_ext needs to come with
the request accordingly, so that authfs can set up the remote file
access.

The current implementation is problematic when there's inconsistency.
Even if /system_ext exists, we shouldn't pass the FD in the compilation
request because the VM may not be set up with a build manifest APK for
/system_ext. This can happen when /system_ext exists but without
BuildManifestSystemExt.apk.

The simple fix is to condition the FD passing on whether the extra APK
exists.

Bug: 267262026
Bug: 273393637
Test: rm /system_ext/etc/security/fsverity/BuildManifestSystemExt.apk
      ComposHostTestCases only after this change
Change-Id: I415343ddb69e4c8cac0b77274db9f629da33fbdd
2023-03-17 09:22:36 -07:00
apex
apkdmverity
authfs Merge changes from topic "fsverity-after-compos" 2023-03-17 15:30:40 +00:00
compos Don't mount the extra apk if VM isn't given one 2023-03-17 09:22:36 -07:00
demo
docs Add docs on how to capture hypervisor traces on QEMU 2023-03-16 11:44:37 +00:00
encryptedstore
javalib Reduce virtmgr threads 2023-03-06 12:14:12 +00:00
launcher
libs Merge "pvmfw: parse and validate incoming device tree" 2023-03-15 11:08:38 +00:00
microdroid Merge "Microdroid: wait for apexd.status=ready instead of activated in init.rc" 2023-03-17 06:26:29 +00:00
microdroid_manager Improve APK signature handling 2023-03-08 09:31:16 +00:00
pvmfw Merge "Add AVF debug policy documentation" 2023-03-17 02:05:51 +00:00
rialto Add --gdb flag to vm run,run-app and run-microdroid commands 2023-02-16 14:33:18 +00:00
tests Merge "Re-enable kernel ramdump test" 2023-03-09 15:23:55 +00:00
virtualizationmanager Merge "Improve APK signature handling" 2023-03-08 14:57:33 +00:00
virtualizationservice Add --gdb flag to vm run,run-app and run-microdroid commands 2023-02-16 14:33:18 +00:00
vm Search for CompOsPayloadApp/EmptyPayloadApp with extensions 2023-03-01 12:01:55 -08:00
vm_payload
vmbase pvmfw: Encrypt instance.img entries 2023-02-24 14:18:26 +00:00
vmclient Reduce virtmgr threads 2023-03-06 12:14:12 +00:00
zipfuse Make sure that files under bin/ directory of apk get X permission 2023-02-27 15:59:08 +00:00
.clang-format
.gitignore
Android.bp
OWNERS
PREUPLOAD.cfg
README.md
TEST_MAPPING Move ComposHostTestCases to postsubmit, since it has a high failure rate on cf in presubmit. 2023-03-08 14:17:17 +00:00
rustfmt.toml

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.