Kernel inspects and sets sender id instead of userspace.

Modified ipc handling so that from now on the kernel inspects and sets
the sender id if the receiver is receiving from L4_ANYTHREAD. This posed
a security problem since the receiver could not trust the sender for
sender information.
This commit is contained in:
Bahadir Balban
2008-02-11 11:11:17 +00:00
parent 0c7d2bbfd1
commit e0492d672f
5 changed files with 19 additions and 18 deletions

View File

@@ -16,15 +16,6 @@
#include INC_GLUE(utcb.h)
#include INC_SUBARCH(mm.h)
/*
* NOTE: These are defined in libl4 headers for userspace. Syslib uses
* these as conventional mr offsets to store ipc-related data commonly needed
* for all ipc parties.
*/
#define MR_TAG 0
#define MR_SENDER 1
#define MR_UNUSED_START 2
/* Send data fault ipc to the faulty task's pager */
void fault_ipc_to_pager(u32 faulty_pc, u32 fsr, u32 far)
{