mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 12:17:38 +00:00
Cleanup SELinux mock files
This commit is contained in:
parent
18566715e1
commit
e1987c42c4
@ -360,8 +360,15 @@ static void daemon_entry() {
|
||||
return true;
|
||||
});
|
||||
}
|
||||
unlink("/dev/.se");
|
||||
unlink(mount_list.data());
|
||||
rm_rf((MAGISKTMP + "/" ROOTOVL).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
|
||||
auto config = MAGISKTMP + "/" INTLROOT "/config";
|
||||
|
Loading…
x
Reference in New Issue
Block a user