Repository navigation
Conversation
Owner
Author
|
Local checks on 89ad459: |
isaaclins
force-pushed
the
t3/fix-freesnitch-issue-272
branch
2 times, most recently
from
November 26, 2026 15:45
256aed5 to
b6566c8
Compare
isaaclins
force-pushed
the
t3/fix-freesnitch-issue-272
branch
from
November 26, 2026 17:33
b6566c8 to
c043913
Compare
This branch has not been deployed
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 #272
How it looks
The uninstall ending when one of your FreeSnitch folders can't be deleted (demo mode,
FREESNITCH_DEMO_UNINSTALL=filesand=both).What was wrong
removeUserDatadeleted the three folders and files in your home folder withtry?and threw every error away. The uninstall then carried on as if they were gone. It quit silently or said "FreeSnitch is uninstalled" (or "Everything else is removed") while, for example, the group container was still on disk.(The root side had the same
;gap. #271 has since fixed that for every privileged step, so this PR leaves that script as #271 left it.)What changes
For users: nothing changes when the uninstall works. When it can't delete something, you now see what is left and where, instead of being told it's all gone.
How I checked
Scripts/test_uninstall_ending.shreplays the issue's steps on real files in a scratch folder. It creates a folder holding an immutable file (uchg), runs the shipping cleanup and checks that exactly that folder is reported while the deleted and never-created paths aren't. It then checks that unlocking makes a second attempt clean, and that a symlink is removed without touching its target. It also checks every ending, with files left, the helper left, and both.Scripts/audit_firewall_safety.sh,Scripts/test_demo_mode_isolation.sh(mutation updated for the new signature, the demo guard is still enforced) andScripts/test_command_line_tool.shpass.xcodebuild … CODE_SIGNING_ALLOWED=NO buildis clean.Not checked on a real Mac
I haven't run a real uninstall with an undeletable file on a signed build. To try it: before uninstalling, run
chflags uchg ~/Library/Application\ Support/FreeSnitch/somefile(create the file if needed), then uninstall. The last screen should name~/Library/Application Support/FreeSnitch. Afterwards runchflags nouchgon the file and delete the folder.On macOS 15 and later, deleting a group container can also be refused by App Data protection. That is the case this is most likely to catch in practice.