mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +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:
parent
05c4ad01d5
commit
61783ffc82
@ -336,6 +336,7 @@ static void daemon_entry() {
|
||||
});
|
||||
}
|
||||
unlink("/dev/.se");
|
||||
unlink(mount_list.data());
|
||||
|
||||
// Load config status
|
||||
auto config = MAGISKTMP + "/" INTLROOT "/config";
|
||||
|
Loading…
Reference in New Issue
Block a user