kernel: processes in the same session should be able to send SIGCONT regardless of permissions
This commit is contained in:
parent
5831f88328
commit
e0a871df8b
@ -211,8 +211,9 @@ int send_signal(pid_t process, uint32_t signal, int force_root) {
|
||||
}
|
||||
|
||||
if (!force_root && receiver->user != current_process->user && current_process->user != USER_ROOT_UID) {
|
||||
/* No way in hell. */
|
||||
return -EPERM;
|
||||
if (!(signal == SIGCONT && receiver->session == current_process->session)) {
|
||||
return -EPERM;
|
||||
}
|
||||
}
|
||||
|
||||
if (signal > NUMSIGNALS) {
|
||||
|
Loading…
Reference in New Issue
Block a user