Merge "Preserve environment when launching overlay_remounter" into main
diff --git a/init/selinux.cpp b/init/selinux.cpp
index 8bdf5b6..2a27c1d 100644
--- a/init/selinux.cpp
+++ b/init/selinux.cpp
@@ -749,7 +749,7 @@
PLOG(FATAL) << "Failed to unlink " << or_dest;
}
const char* args[] = {or_dest.c_str(), nullptr};
- fexecve(dest.get(), const_cast<char**>(args), nullptr);
+ fexecve(dest.get(), const_cast<char**>(args), environ);
// execv() only returns if an error happened, in which case we
// panic and never return from this function.