kernel: processes in the same session should be able to send SIGCONT regardless of permissions

This commit is contained in:
K. Lange 2018-10-29 18:32:13 +09:00
parent 5831f88328
commit e0a871df8b

View File

@ -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) {