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:
topjohnwu
2022-04-16 07:27:34 -07:00
parent c2b74aa83e
commit 134508193d
2 changed files with 10 additions and 25 deletions
-8
View File
@@ -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 {