Skip to content

sandbox-actions: support sandbox-exec on macOS#15500

Merged
rgrinberg merged 1 commit into
ocaml:mainfrom
rgrinberg:push-xqmxtvkqtnly
Jul 19, 2026
Merged

sandbox-actions: support sandbox-exec on macOS#15500
rgrinberg merged 1 commit into
ocaml:mainfrom
rgrinberg:push-xqmxtvkqtnly

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

Dispatch the sandbox action runner wrapper by platform, keeping bubblewrap on
Linux and using sandbox-exec on macOS. The sandbox-exec profile denies writes to
the shared cache db while preserving normal filesystem access.

Add an internal with-sandbox-exec wrapper command and macOS-gated cram coverage
for shared cache protection.

@rgrinberg
rgrinberg force-pushed the push-xqmxtvkqtnly branch 4 times, most recently from bb26017 to 5bded70 Compare July 19, 2026 02:49
Dispatch the sandbox action runner wrapper by platform, keeping bubblewrap on
Linux and using sandbox-exec on macOS. The sandbox-exec profile denies writes to
the shared cache db while preserving normal filesystem access.

Add an internal with-sandbox-exec wrapper command and macOS-gated cram coverage
for shared cache protection.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

fix(sandbox-actions): protect symlinked macOS cache paths

Include the canonical cache directory in sandbox-exec profiles so symlinked
cache roots remain read-only. Add regression coverage to the regular macOS test
run and narrow the changelog entry to the macOS support.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
@rgrinberg
rgrinberg force-pushed the push-xqmxtvkqtnly branch from 5bded70 to 678999d Compare July 19, 2026 04:21
@rgrinberg
rgrinberg merged commit 4301f3b into ocaml:main Jul 19, 2026
35 checks passed
@Alizter Alizter added this to the 3.25.0 milestone Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants