mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-16 08:31:24 +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;
|
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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user