mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-15 01:57:58 +08:00
4cb79941fc
This enables the following code in util/mach on iOS: - exception_behaviors.{cc,h} - exception_ports.{cc,h} - mach_message.{cc,h} - mach_message_server.{cc,h} Only the ExceptionBehaviors and MachMessage tests are built, because the other two are tested by multiprocess tests that won’t run on iOS. The AuditPIDFromMachMessageTrailer function from mach_message.h is excluded on iOS because it relies on <bsm/libbsm.h>, which is broken on iOS: it depends on <bsm/audit_record.h>, which is missing from the SDK. Additionally, the BSM function that Crashpad uses, audit_token_to_au32, is marked as unavailable on iOS. Crashpad uses it on macOS to authenticate Mach messages sent by other processes, but this is moot on iOS. Bug: crashpad:31 Change-Id: I5ebc4b80543989b9cd0b85b82eb4b3ff98c44e6c Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2155086 Reviewed-by: Justin Cohen <justincohen@chromium.org> Commit-Queue: Mark Mentovai <mark@chromium.org>