mirror of git://sourceware.org/git/glibc.git
Return EPERM if TASK is not right.
This commit is contained in:
parent
828082d78a
commit
7593dfe267
|
|
@ -32,6 +32,10 @@ _S_catch_exception_raise (mach_port_t port,
|
|||
int signo, sigcode, error;
|
||||
struct hurd_sigstate *ss;
|
||||
|
||||
if (task != __mach_task_self ())
|
||||
/* The sender wasn't the kernel. */
|
||||
return EPERM;
|
||||
|
||||
/* Call the machine-dependent function to translate the Mach exception
|
||||
codes into a signal number and subcode. */
|
||||
_hurd_exception2signal (exception, code, subcode,
|
||||
|
|
|
|||
Loading…
Reference in New Issue