You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Mock selinuxfs load with regular file
The hijacked load node does not need to be a FIFO. A FIFO is only required for blocking init's control flow, which is already achieved by hijacking the enforce node.
This commit is contained in:
@@ -362,14 +362,6 @@ static void daemon_entry() {
|
||||
}
|
||||
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";
|
||||
parse_prop_file(config.data(), [](auto key, auto val) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user