- Kernel call handlers cleaned up. More strict checking of input parameters.
- Moved generic_handler() from system.c to system/do_irqctl.c. - Set privileges of system processes somewhat stricter.
This commit is contained in:
@@ -30,6 +30,7 @@ message *m_ptr; /* pointer to request message */
|
||||
int sig_nr = m_ptr->SIG_NUMBER;
|
||||
|
||||
if (! isokprocn(proc_nr) || sig_nr > _NSIG) return(EINVAL);
|
||||
if (iskerneln(proc_nr)) return(EPERM);
|
||||
|
||||
if (m_ptr->m_source == PM_PROC_NR) {
|
||||
/* Directly send signal notification to a system process. */
|
||||
|
||||
Reference in New Issue
Block a user