Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Fix automatically denied events with small deadlines #1284

Merged
merged 2 commits into from
Feb 8, 2024

Conversation

mlw
Copy link
Contributor

@mlw mlw commented Feb 8, 2024

macOS 14.4 betas introduce much smaller ES deadline values for AUTH messages. Additionally, it adds several "critical" binaries with extremely small deadline values which also perform operations Santa attempts to authorize that weren't previously typical before macOS 14.4.

Santa attempts to respond to AUTH events before deadlines even if a result wasn't complete to prevent being killed by the system. However the basic mechanism Santa used had its assumptions broken in the latest betas. This results in events from binaries treated as "critical" by ES being immediately denied by Santa.

This patch changes how event processing budgets are computed to be more flexible with events with extremely low timeouts. This should unblock Santa deployment on macOS 14.4.

@mlw mlw added bug santad Work related to the Santa Daemon labels Feb 8, 2024
@mlw mlw requested a review from a team as a code owner February 8, 2024 04:01
russellhancox
russellhancox previously approved these changes Feb 8, 2024
@mlw mlw merged commit 5dfab22 into google:main Feb 8, 2024
9 checks passed
@mlw mlw added this to the 2024.2 milestone Feb 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug santad Work related to the Santa Daemon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants