]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/exception.h
xnu-4570.20.62.tar.gz
[apple/xnu.git] / osfmk / kern / exception.h
index 78e659a97fce8b63e9351e1ef74f0b67bcc14cd0..7ab0fcca30c74b287fe67ab803d09060a20e3504 100644 (file)
@@ -36,6 +36,7 @@
 #include <mach/thread_status.h>
 #include <mach/exception_types.h>
 #include <kern/kern_types.h>
+#include <security/_label.h>
 
 /*
  * Common storage for exception actions.
@@ -46,19 +47,26 @@ struct exception_action {
        thread_state_flavor_t   flavor;         /* state flavor to send */
        exception_behavior_t    behavior;       /* exception type to raise */
        boolean_t               privileged;     /* survives ipc_task_reset */
+       struct label            *label;         /* MAC label associated with action */
 };
 
 /* Make an up-call to a thread's exception server */
-extern void exception_triage(
+extern kern_return_t exception_triage(
        exception_type_t        exception,
        mach_exception_data_t   code,
        mach_msg_type_number_t  codeCnt);
 
+extern kern_return_t exception_triage_thread(
+       exception_type_t        exception,
+       mach_exception_data_t   code,
+       mach_msg_type_number_t  codeCnt,
+       thread_t                thread);
+
 /* Notify system performance monitor */
 extern kern_return_t sys_perf_notify(thread_t thread, int pid);
 
 /* Notify crash reporter */
-extern kern_return_t abnormal_exit_notify(mach_exception_data_type_t code, 
-               mach_exception_data_type_t subcode);
+extern kern_return_t task_exception_notify(exception_type_t exception,
+       mach_exception_data_type_t code, mach_exception_data_type_t subcode);
 
 #endif /* _KERN_EXCEPTION_H_ */