Commit e1987c42 authored by vvb2060's avatar vvb2060 Committed by John Wu

Cleanup SELinux mock files

parent 18566715
...@@ -360,8 +360,15 @@ static void daemon_entry() { ...@@ -360,8 +360,15 @@ static void daemon_entry() {
return true; return true;
}); });
} }
unlink("/dev/.se"); rm_rf((MAGISKTMP + "/" ROOTOVL).data());
unlink(mount_list.data());
// SELinux mock cleanups
string selinux_mock = MAGISKTMP + "/" SELINUXMOCK;
string fs = selinux_mock + "/fs";
if (access(fs.data(), F_OK) == 0) {
umount2(fs.data(), MNT_DETACH);
}
rm_rf(selinux_mock.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