Let sandboxed agents use mktemp, and keep backups from waiting on prompts

macOS' mktemp uses the per-user temp folder in /var/folders, not TMPDIR,
so the sandbox now allows writing there. The sandbox's settings move out
of it, to Application Support, which the agent can't read or write.

Without Full Disk Access, reading Desktop, Documents, Downloads, other
apps' containers or Photos makes macOS ask, and restic waited for an
answer no one gives at night. The backup now leaves those out until it
has Full Disk Access, as configure backup already said it did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-11 16:19:21 -07:00
co-authored by Claude Opus 5.5
parent eab26c0888
commit ad97e68db1
4 changed files with 36 additions and 9 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ Each scenario runs on a fresh clone of Cirrus Labs' **vanilla** macOS image (def
macOS deliberately allows these only with a click, so test them by hand on a VM (`--keep`) or a Mac. Each scenario notes which apply to it as a `skip` line.
- **Installing the profile:** in System Settings > Profiles, choose "Federated Core (...)", then Install. Then check Mail, Calendar and Contacts against a real Core. `configure core` notices the profile was installed.
- **Full Disk Access for Federated Backup:** after granting it, `configure backup` says it can read all your files, and the backup log no longer has permission errors for Documents and Desktop.
- **Full Disk Access for Federated Backup:** after granting it, `configure backup` says it can read all your files, and the next backup includes Desktop, Documents and Downloads, which it leaves out without Full Disk Access (as macOS would otherwise stop it with a prompt).
- **Turning on macFUSE's file system extension**, if `85-sftp` couldn't do it with `pluginkit`: then mount an SFTP folder with `configure storage`. With the extension off, `85-sftp` checks that `add_sftp` gives up after 30 seconds rather than hanging.
- **Mounting a real SMB share:** the sign-in window, "Remember this password in my keychain", and whether `mount volume "smb://host"` without a share offers a list of shares.
- **Tailscale's VPN approval**, and **Nextcloud's sign-in** in the browser.