You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
no need to unshare
This commit is contained in:
@@ -566,22 +566,6 @@ static bool prepare_environment() {
|
||||
}
|
||||
return true;
|
||||
});
|
||||
int old_ns;
|
||||
char wd[128];
|
||||
if (getcwd(wd, sizeof(wd)) == nullptr) {
|
||||
PLOGE("get cwd");
|
||||
return false;
|
||||
}
|
||||
if (!switch_mnt_ns(1, &old_ns)) return false;
|
||||
if (chdir(wd) == -1) {
|
||||
PLOGE("chdir %s", wd);
|
||||
return false;
|
||||
}
|
||||
if (!switch_mnt_ns(0, &old_ns)) return false;
|
||||
if (chdir(wd) == -1) {
|
||||
PLOGE("chdir %s", wd);
|
||||
return false;
|
||||
}
|
||||
updateStatus();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user