tcc

package
v0.78.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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.

View Source
var Folders = []string{"Desktop", "Documents", "Downloads"}

Folders are the account folders macOS asks about, relative to its home.

Functions

func Check

func Check(path string) error

Check returns ErrOffLimits for a path an isolated daemon must leave alone.

func Isolated

func Isolated() bool

Isolated reports whether this daemon runs isolated on macOS and so keeps out of the account's guarded folders.

func OffLimits

func OffLimits(path string) bool

OffLimits reports whether an isolated daemon must leave path alone.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL