FFFF fix(scripts): macOS uninstall remedy removes lo0 aliases and empty dirs · gominimal/minimal@33ad4c6 · GitHub
[go: up one dir, main page]

Skip to content

fix(scripts): macOS uninstall remedy removes lo0 aliases and empty dirs

Minimal Arch / arch-review succeeded Nov 18, 2026

PASS (the design is silent)

Inputs. The ledger already holds a PASS on this same head 33ad4c6b and on the same arch 327e1b57. No since.diff, since-conditions.json or findings.json is staged. The checkout has no arch-map.md, so I found the sections by search. I read pr.diff whole and ruled again. I did not rely on the earlier ruling alone.

Governs. specs/networking/deployment-and-egress-gateway.md §7.1, lines 258, 263 and 264. Line 258 makes /etc/resolver/min.internal one root write, surfaced as an advisory, with a root-free installer. Line 263 reserves 127.0.64.0/24. Line 264 has one privileged step that installs a root LaunchDaemon, which re-applies the reserved range on lo0 at each boot. These lines cover the install side only. No line in the design covers how the uninstaller removes these items. So this is a PASS by absence (design_silent: true).

Ruling. I checked the change against the lines it touches, and it stays consistent with them. (1) The installer stays root-free. The new root commands go into _ns_undo, which maybe_remove_finalize_install only prints. The tty path runs min finalize-install --undo and prints _fi_undo only on failure. (2) The alias loop removes exactly 127.0.64.1-.254. That is the range crates/boxes/src/core/loopback.rs (POOL_LAST) and crates/minzoned/src/main.rs apply. It does not touch .0, .255 or 127.0.0.1. (3) The loop falls to the safe side. When pgrep -qx minvmd finds a VM, the line keeps the aliases that live boxes use and prints why. (4) rmdir removes /etc/resolver and /Library/PrivilegedHelperTools only when they are empty, so the line removes nothing that another product owns. The new darwin note fires only when the DNS setup was found (_fi_dns).

Not checked. No macOS host ran the printed line. The PR says so too. The test runs it on Linux with stubbed ifconfig and pgrep. I did not build or run tests. User-facing wording is minimal-review's concern, not this ruling's.

Ruled at 33ad4c6 against gominimal/arch@327e1b57d16b by claude-opus-5-5; arch_rulings 1391, job 718b54b6-30ba-4f18-bc98-f8b525ad3bf7.

0