From 5df9431a22084d8324ea13fc76424dcaf9d6b30b Mon Sep 17 00:00:00 2001 From: Ylarod Date: Thu, 6 Nov 2025 21:36:34 +0800 Subject: [PATCH] kill pgrp in enhanced security --- kernel/core_hook.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 5c582822..0e9d5d26 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -539,7 +539,7 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old) if (!is_ksu_domain()) { pr_warn("find suspicious EoP: %d %s, from %d to %d\n", current->pid, current->comm, old_uid.val, new_uid.val); - send_sig(SIGKILL, current, 0); + kill_pgrp(SIGKILL, current, 0); return 0; } } @@ -548,7 +548,7 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old) if (new_uid.val < old_uid.val && !ksu_is_allow_uid_for_current(old_uid.val)) { pr_warn("find suspicious EoP: %d %s, from %d to %d\n", current->pid, current->comm, old_uid.val, new_uid.val); - send_sig(SIGKILL, current, 0); + kill_pgrp(SIGKILL, current, 0); return 0; } }