forwarding exception messages back to previous handler (different ipc space)
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=SKQGBTZiMYEqKppfwJsTei3Di0GXBUHVhSu818Ty1uY=; b=n9zw//Pvgf/ddrQaNXlBhvGU+/HmeILgspcKEmH8gaqMjrasBClSVQIyjA8SLvtQ0r 18yBxBSHNur6Pip7uElbU3UWvb56srOp8mSrkRNar3EeX2egmudb0+gQ5NhNImJ7EoMm TDhtOsZkSt3S8Mk4Lrs3yl2Y+OQX/tV9QguwmkOJlRmeMcUG/YhEoOnJ3+mv2j41OqUE iHCfFFN+0r2/7ZVaAu9/XQDQfEM4PQwIM/op55gJiR93kHCaoFBf7LK2DYGYySU0KZwd eyvfIVcxq6gaPeM1VftUeIUTPECKs9LoGtXjENlanzq1an1XyfUpoeOZq3GxoRtsHTnx Mj8g== 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app... This email sent to site_archiver@lists.apple.com
participants (1)
-
dor hadad