Repository navigation
Doctor: a failed extension query reads as unknown, not unapproved - #599
Merged
Merged
Conversation
isaaclins
force-pushed
the
t3/fix-freesnitch-issue-255
branch
2 times, most recently
from
November 26, 2026 11:43
b07b0e0 to
9984208
Compare
isaaclins
force-pushed
the
t3/fix-freesnitch-issue-255
branch
from
November 26, 2026 15:55
9984208 to
333fd8c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #255
When
systemextensionsctl listexits nonzero and prints nothing about FreeSnitch,freesnitch doctorused to say the network extension was not approved and sent people to the approval steps, even though the query never got an answer.What changes for users
Nothing here touches filtering, rules or DNS. It only changes what doctor reports.
How I checked
Scripts/test_doctor_extension_query.sh(new) runs the real parser and the real doctor step against a failed query (exit 1 and 64, with empty and unrelated output), a successful empty listing, an activated record with exit 1, and a record waiting for approval. On the old code it fails with "doctor finding for exit 1 is problem, not unknown".xcodebuild(monitor flavour, unsigned) builds clean,Scripts/audit_firewall_safety.shpasses, the existing CLI tests pass.Not checked on a real Mac
I couldn't make
systemextensionsctlfail on a firewall build here. To try it: on a signed firewall build, runfreesnitch doctornormally (approval should still read as approved), and if you can reproduce a failingsystemextensionsctl list, doctor should showextension_approvalas unknown with the exit status in the message.No visible UI change, so no screenshots.