Support SELinux disabled on debug builds

This commit is contained in:
topjohnwu
2022-05-31 22:24:13 -07:00
parent d7776f6597
commit d4fe8632ec
6 changed files with 40 additions and 8 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ static void handle_request(pollfd *pfd) {
}
break;
case MainRequest::ZYGISK:
if (!is_zygote) {
if (!is_zygote && selinux_enabled()) {
// Invalid client context
write_int(client, MainResponse::ACCESS_DENIED);
goto done;