fix: sanitizing fds in parent Zygote

This commit fixes the issue where ReZygisk would sanitize fds not only in the child but also in the parent.
This commit is contained in:
ThePedroo
2025-04-28 17:12:40 -03:00
parent 0930c8cca4
commit d6961603fa

View File

@@ -753,10 +753,11 @@ void ZygiskContext::nativeForkSystemServer_pre() {
flags[SERVER_FORK_AND_SPECIALIZE] = true;
fork_pre();
if (is_child()) {
run_modules_pre();
rezygiskd_system_server_started();
}
if (!is_child())
return;
run_modules_pre();
rezygiskd_system_server_started();
sanitize_fds();
}