You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user