forwarding exception messages back to previous handler (different ipc space)
forwarding exception messages back to previous handler (different ipc space)
- Subject: forwarding exception messages back to previous handler (different ipc space)
- From: dor hadad <email@hidden>
- Date: Thu, 22 Mar 2018 10:49:51 +0200
Hi,
Hope anyone of you can help me with my issue.
I'm trying to set an exception handler from my kernel extension for a
specific user application (firefox for instance).
I was looking for code examples from xnu on how to do so, and came accross
the ux_handler in exception.c which is as far as I know, xnu's exceptions
handler.
this part was the easy part as I was able to catch all exception messages
sent to 'firefox' and handle them as I want,
the difficult part is when I'm trying to forward an exception message that
wasn't meant for me to handle but was meant for 'firefox' exception handler.
I'm trying to forward the message and keep getting an error from mach_msg
saying MACH_SEND_INVALID_DEST.
another think worth mentioning is that I have another thread that
constantly calling task_get_exception_ports in order to figure out when
'firefox' is calling task_set_exception_ports to set its own exception
handler and then I'm overriding it back with my existing handler (of course
that I'm saving firefox's exception port so then I could forward messages
back to it).
Any ideas how can I forward messages back to the previous exception port
knowing handling the exceptions from a different ipc space?
Thanks
Dor
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden