Documentation
¶
Overview ¶
Package tcc keeps an isolated Caprock daemon out of the folders macOS guards with a privacy prompt (ADR-040).
macOS asks before a process reads the account's Desktop, Documents or Downloads, and remembers the answer per program — for a command-line binary, per path and code signature. A daemon a test, a benchmark or a preview starts runs from a build of its own, so every one that reaches into those folders is another "caprock" in System Settings → Privacy & Security → Files and Folders, and a prompt on the owner's screen. A preview that copies the real database knows the real projects, some of which live there.
An isolated daemon is one whose HOME is not the account's home: every test and stand sets a temporary HOME. Such a daemon refuses those folders of the real account, whatever its database says. The daemon the user runs has its real HOME and is never limited.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrOffLimits = errors.New("an isolated daemon does not touch the account's Desktop, Documents or Downloads")
ErrOffLimits is returned for a path an isolated daemon does not touch.
var Folders = []string{"Desktop", "Documents", "Downloads"}
Folders are the account folders macOS asks about, relative to its home.
Functions ¶
Types ¶
This section is empty.