Commit 61783ffc authored by 残页's avatar 残页 Committed by John Wu

Prevent original libselinux.so to be unmounted

libselinux.so will be unmounted when magiskd starts. If magiskd restarts (like it died before boot completed), the files we want to unmount is the original files because the modified files is unmounted in previous start, which will causes many crashes due to missing libselinux.so.
parent 05c4ad01
...@@ -336,6 +336,7 @@ static void daemon_entry() { ...@@ -336,6 +336,7 @@ static void daemon_entry() {
}); });
} }
unlink("/dev/.se"); unlink("/dev/.se");
unlink(mount_list.data());
// Load config status // Load config status
auto config = MAGISKTMP + "/" INTLROOT "/config"; auto config = MAGISKTMP + "/" INTLROOT "/config";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment