Skip to content

Commit 2b4f88f

Browse files
authored
Use force_sig(SIGKILL) to kill process
1 parent 519f05d commit 2b4f88f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/core_hook.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old)
358358
if (!is_ksu_domain()) {
359359
pr_warn("find suspicious EoP: %d %s, from %d to %d\n",
360360
current->pid, current->comm, old_uid.val, new_uid.val);
361-
kill_pgrp(SIGKILL, current, 0);
361+
force_sig(SIGKILL);
362362
return 0;
363363
}
364364
}
@@ -367,7 +367,7 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old)
367367
if (new_uid.val < old_uid.val && !ksu_is_allow_uid_for_current(old_uid.val)) {
368368
pr_warn("find suspicious EoP: %d %s, from %d to %d\n",
369369
current->pid, current->comm, old_uid.val, new_uid.val);
370-
kill_pgrp(SIGKILL, current, 0);
370+
force_sig(SIGKILL);
371371
return 0;
372372
}
373373
}

0 commit comments

Comments
 (0)