diff options
| author | Maxim Sobolev <sobomax@FreeBSD.org> | 2005-03-18 11:08:55 +0000 |
|---|---|---|
| committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2005-03-18 11:08:55 +0000 |
| commit | f9cd63d436c61624296f6f64e52366fa34aab840 (patch) | |
| tree | 72cbdb39c65ac6c52684e8fa9804a1dbae14c390 /sys/kern/kern_prot.c | |
| parent | 60c5621a8db009ba918e6f1e4f14d8563f9b3e68 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_prot.c')
| -rw-r--r-- | sys/kern/kern_prot.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index 9c6cd09c68c3..174d87f8f638 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -1524,15 +1524,15 @@ p_cansignal(struct thread *td, struct proc *p, int signum) if (signum == SIGCONT && td->td_proc->p_session == p->p_session) return (0); /* - * Some compat layers use SIGTHR for communications between - * different kernel threads of the same process, so that - * they are expecting that it's always possible to deliver - * it, even for suid applications where cr_cansignal() can + * Some compat layers use SIGTHR and higher signals for + * communication between different kernel threads of the same + * process, so that they expect that it's always possible to + * deliver them, even for suid applications where cr_cansignal() can * deny such ability for security consideration. It should be * pretty safe to do since the only way to create two processes * with the same p_leader is via rfork(2). */ - if (signum == SIGTHR && td->td_proc->p_leader != NULL && + if (signum >= SIGTHR && td->td_proc->p_leader != NULL && td->td_proc->p_leader == p->p_leader) return (0); |
