Use force_sig(SIGKILL) to kill process

This commit is contained in:
Wang Han
2025-11-07 23:07:14 +08:00
committed by ShirkNeko
parent c6d9f76c7b
commit a533a490bd

View File

@@ -532,7 +532,7 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old)
if (!is_ksu_domain()) { if (!is_ksu_domain()) {
pr_warn("find suspicious EoP: %d %s, from %d to %d\n", pr_warn("find suspicious EoP: %d %s, from %d to %d\n",
current->pid, current->comm, old_uid.val, new_uid.val); current->pid, current->comm, old_uid.val, new_uid.val);
kill_pgrp(SIGKILL, current, 0); force_sig(SIGKILL);
return 0; return 0;
} }
} }
@@ -541,7 +541,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)) { 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", pr_warn("find suspicious EoP: %d %s, from %d to %d\n",
current->pid, current->comm, old_uid.val, new_uid.val); current->pid, current->comm, old_uid.val, new_uid.val);
kill_pgrp(SIGKILL, current, 0); force_sig(SIGKILL);
return 0; return 0;
} }
} }