diff --git a/kernel/core_hook.c b/kernel/core_hook.c index e76262b4..45603607 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -617,8 +617,7 @@ do_umount: // check old process's selinux context, if it is not zygote, ignore it! // because some su apps may setuid to untrusted_app but they are in global mount namespace // when we umount for such process, that is a disaster! - bool is_zygote_child = is_zygote(old->security); - if (!is_zygote_child) { + if (!is_zygote(old->security)) { pr_info("handle umount ignore non zygote child: %d\n", current->pid); return 0;