Provide a warning is a kernel call has been denied, to ease system.conf debugging
This commit is contained in:
parent
4683d6b713
commit
c3e73f0793
1 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,8 @@ PRIVATE int kernel_call_dispatch(struct proc * caller, message *msg)
|
||||||
result = EBADREQUEST; /* illegal message type */
|
result = EBADREQUEST; /* illegal message type */
|
||||||
}
|
}
|
||||||
else if (!GET_BIT(priv(caller)->s_k_call_mask, call_nr)) {
|
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 */
|
result = ECALLDENIED; /* illegal message type */
|
||||||
} else {
|
} else {
|
||||||
/* handle the system call */
|
/* handle the system call */
|
||||||
|
|
Loading…
Reference in a new issue