I am reviewing the supported Endpoint Security API contract for a design targeting macOS 27.2. I have not activated an Endpoint Security extension or reproduced this scenario. This is a question about documented API behavior.
In “Build an Endpoint Security app” at WWDC20, Apple explains that Endpoint Security applies an implicit allow result when no clients are subscribed to an event’s AUTH variant.
The current documentation for es_set_deadline_miss_mode describes handling missed authorization deadlines. It also documents denial when an AUTH message is dropped because the queue of a client configured with ES_DEADLINE_MISS_MODE_FAIL_CLOSED is full.
Consider a single client created with es_new_client, subscribed to ES_EVENT_TYPE_AUTH_CREATE, and configured with ES_DEADLINE_MISS_MODE_FAIL_CLOSED.
What supported behavior applies in these two situations?
-
An AUTH_CREATE request has already been delivered and remains unanswered when the client crashes, disconnects, is destroyed with
es_delete_client, or unsubscribes while remaining connected. How is that pending request resolved? Please distinguish these cases if their behavior differs. -
A new, otherwise permitted creation is attempted while no client is subscribed to AUTH_CREATE. Does the implicit-allow rule described at WWDC20 still apply on macOS 27.2, regardless of the previous client’s FAIL_CLOSED setting?
We need to determine whether the design requires an independent control during the interval without a subscribed client. References to the supported contract, applicable versions, and conditions would be very helpful.
References:
- https://developer.apple.com/videos/play/wwdc2020/10159/
- https://developer.apple.com/documentation/endpointsecurity/es_set_deadline_miss_mode(_:_:)
- https://developer.apple.com/documentation/endpointsecurity/es_delete_client(_:)
- https://developer.apple.com/documentation/endpointsecurity/es_unsubscribe_all(_:)