mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-14 11:47:26 +00:00
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.
This commit is contained in:
@@ -336,6 +336,7 @@ static void daemon_entry() {
|
||||
});
|
||||
}
|
||||
unlink("/dev/.se");
|
||||
unlink(mount_list.data());
|
||||
|
||||
// Load config status
|
||||
auto config = MAGISKTMP + "/" INTLROOT "/config";
|
||||
|
Reference in New Issue
Block a user