Proper 2SI detection
This commit is contained in:
parent
5c4c391f94
commit
fd5ad91d26
@ -182,6 +182,9 @@ void load_kernel_info(cmdline *cmd) {
|
|||||||
bool check_two_stage() {
|
bool check_two_stage() {
|
||||||
if (access("/apex", F_OK) == 0)
|
if (access("/apex", F_OK) == 0)
|
||||||
return true;
|
return true;
|
||||||
auto init = raw_data::mmap_ro("/init");
|
if (access("/system/bin/init", F_OK) == 0)
|
||||||
|
return true;
|
||||||
|
// If we still have no indication, parse the original init and see what's up
|
||||||
|
auto init = raw_data::mmap_ro("/.backup/init");
|
||||||
return init.find("selinux_setup");
|
return init.find("selinux_setup");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user