Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug santad Work related to the Santa Daemon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants