mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
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:
@@ -95,4 +95,5 @@ struct kip {
|
||||
extern struct kip kip;
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
|
||||
#endif /* __KIP_H__ */
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
|
||||
#define MR_TOTAL 6
|
||||
|
||||
#define MR_TAG 0
|
||||
#define MR_SENDER 1
|
||||
#define MR_UNUSED_START 2
|
||||
|
||||
/* Compact utcb for now! 8-) */
|
||||
struct utcb {
|
||||
u32 mr[MR_TOTAL];
|
||||
|
||||
Reference in New Issue
Block a user