SIGN IN SIGN UP

Restrict macOS scratch access to process sandboxes (#40961)

## Why

Filesystem helpers should not inherit access to system scratch directories beyond the paths granted by their filesystem policy, while ordinary processes still need scratch access for compatibility.

## What changed

- Move the `/tmp` and `/var/tmp` read/write grants, including their `/private` aliases, from the shared platform defaults into the process-only Seatbelt defaults.
- Keep process access to `/Applications` alongside the scratch-directory grants.

## Testing

Add a macOS Seatbelt test that verifies the generated policies and, when nested Seatbelt execution is available, confirms process scratch access, helper denial, and helper access to an approved project path.

GitOrigin-RevId: 26d83f09c131c1f1d000163b2f8929f601749719
D
dank-openai committed
7f823973633472ec75b9ab86342e01561f78dd42
Parent: d47e5cc
Committed by copyberry <copyberry@app.openai.com> on 8/26/2026, 7:38:42 PM