summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-12-11 12:56:47 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2013-12-16 10:48:18 +0100
commitb8bce60ff16e52862ca5a3c5a6018420b4fa3cd1 (patch)
treeefe41f7815f7389aff9b3398f7c5f04d98d73578 /utils
parent9a1bb117c165bbedb2b75578ac71e46f2139470e (diff)
utils/rpctrace: handle MACH_MSG_TYPE_PORT_SEND rights in trace_and_forward
This allows one to rpctrace processes doing select(2). * utils/rpctrace.c (trace_and_forward): Handle MACH_MSG_TYPE_PORT_SEND rights.
Diffstat (limited to 'utils')
-rw-r--r--utils/rpctrace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/rpctrace.c b/utils/rpctrace.c
index 5d3b2ca0..b39b2e31 100644
--- a/utils/rpctrace.c
+++ b/utils/rpctrace.c
@@ -1286,6 +1286,10 @@ trace_and_forward (mach_msg_header_t *inp, mach_msg_header_t *outp)
{
switch (reply_type)
{
+ case MACH_MSG_TYPE_PORT_SEND:
+ rewrite_right (&inp->msgh_local_port, &reply_type, NULL);
+ break;
+
case MACH_MSG_TYPE_PORT_SEND_ONCE:;
struct send_once_info *info;
info = new_send_once_wrapper (inp->msgh_local_port,