Provide a warning is a kernel call has been denied, to ease system.conf debugging

This commit is contained in:
Erik van der Kouwe 2010-03-17 18:23:51 +00:00
parent 4683d6b713
commit c3e73f0793

View file

@ -105,6 +105,8 @@ PRIVATE int kernel_call_dispatch(struct proc * caller, message *msg)
result = EBADREQUEST; /* illegal message type */
}
else if (!GET_BIT(priv(caller)->s_k_call_mask, call_nr)) {
printf("SYSTEM: denied request %d from %d.\n",
call_nr,msg->m_source);
result = ECALLDENIED; /* illegal message type */
} else {
/* handle the system call */