Merge "Add build config for Kokoro" into main am: a63d988547
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Virtualization/+/3271637
Change-Id: I432194f6872fad611b3293ab5d00e7cb4785685b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/android/fd_server/src/main.rs b/android/fd_server/src/main.rs
index 07f0896..de7ca1d 100644
--- a/android/fd_server/src/main.rs
+++ b/android/fd_server/src/main.rs
@@ -109,7 +109,8 @@
}
fn main() -> Result<()> {
- // SAFETY: nobody has taken ownership of the inherited FDs yet.
+ // SAFETY: This is very early in the process. Nobody has taken ownership of the inherited FDs
+ // yet.
unsafe { rustutils::inherited_fd::init_once()? };
android_logger::init_once(
diff --git a/android/virtmgr/src/main.rs b/android/virtmgr/src/main.rs
index 1625009..3876d39 100644
--- a/android/virtmgr/src/main.rs
+++ b/android/virtmgr/src/main.rs
@@ -83,7 +83,8 @@
}
fn main() {
- // SAFETY: nobody has taken ownership of the inherited FDs yet.
+ // SAFETY: This is very early in the process. Nobody has taken ownership of the inherited FDs
+ // yet.
unsafe { rustutils::inherited_fd::init_once() }
.expect("Failed to take ownership of inherited FDs");
diff --git a/guest/authfs_service/src/main.rs b/guest/authfs_service/src/main.rs
index be0f1b2..855bd58 100644
--- a/guest/authfs_service/src/main.rs
+++ b/guest/authfs_service/src/main.rs
@@ -109,7 +109,8 @@
#[allow(clippy::eq_op)]
fn try_main() -> Result<()> {
- // SAFETY: nobody has taken ownership of the inherited FDs yet.
+ // SAFETY: This is very early in the process. Nobody has taken ownership of the inherited FDs
+ // yet.
unsafe { rustutils::inherited_fd::init_once()? };
let debuggable = env!("TARGET_BUILD_VARIANT") != "user";
diff --git a/guest/microdroid_manager/src/main.rs b/guest/microdroid_manager/src/main.rs
index fa089fa..f1d21d2 100644
--- a/guest/microdroid_manager/src/main.rs
+++ b/guest/microdroid_manager/src/main.rs
@@ -170,7 +170,8 @@
}
fn main() -> Result<()> {
- // SAFETY: nobody has taken ownership of the inherited FDs yet.
+ // SAFETY: This is very early in the process. Nobody has taken ownership of the inherited FDs
+ // yet.
unsafe { rustutils::inherited_fd::init_once()? };
// If debuggable, print full backtrace to console log with stdio_to_kmsg