#include <mach/thread_status.h>
#include <mach/exception_types.h>
#include <kern/kern_types.h>
+#include <security/_label.h>
/*
* Common storage for exception actions.
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_ */