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:
残页 2021-09-21 23:23:25 +08:00 committed by John Wu
parent 05c4ad01d5
commit 61783ffc82

View File

@ -336,6 +336,7 @@ static void daemon_entry() {
});
}
unlink("/dev/.se");
unlink(mount_list.data());
// Load config status
auto config = MAGISKTMP + "/" INTLROOT "/config";