Correggi rilevamento di Full Disk Access concesso#3
Open
lucagentile wants to merge 1 commit into
Open
Conversation
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.
Riepilogo
Il problema di partenza era che macOS poteva mostrare Full Disk Access come concesso, ma MacPersistenceChecker non recepiva sempre quel cambio di stato in modo affidabile. Da fuori sembrava un singolo bug di permessi; in pratica potevano sovrapporsi tre cause: firma ad-hoc non stabile per TCC, mancanza di refresh quando l'app tornava attiva e diagnostica insufficiente nel checker FDA.
Questa PR rende il flusso verificabile: il controllo non restituisce piu solo un booleano, ma conserva evidenza diagnostica sui probe eseguiti, si aggiorna quando l'app torna attiva e non permette piu a uno skip persistente di nascondere il problema tra un riavvio e l'altro.
Modifiche
errno, errore Cocoa e timestamp.fdaWasGranted.NSApplication.didBecomeActiveNotificationescenePhase.build.shper usare tool di sistema con path assoluto, stampare dettagli di firma, supportareSIGNING_IDENTITY/REQUIRE_STABLE_SIGNINGe fallire in preflight se l'identita richiesta non esiste.scripts/verify-fda-build.shper ispezionare bundle id, firma, designated requirement e Gatekeeper senza modificare TCC.Come verificare
swift testbash -n build.shbash -n scripts/verify-fda-build.sh./build.shscripts/verify-fda-build.sh MacPersistenceChecker.appREQUIRE_STABLE_SIGNING=1 ./build.shfallisce subito con un errore chiaro se mancaSIGNING_IDENTITY.SIGNING_IDENTITY="Developer ID Application: Example Corp (TEAMID)" REQUIRE_STABLE_SIGNING=1 ./build.shfallisce in preflight se l'identita indicata non esiste.Note per i reviewer
Il comando
scripts/verify-fda-build.she intenzionalmente read-only: non resetta TCC, non modifica permessi e non cambia il bundle dell'app.