bazelbuild/bazel

Stronger MacOS Sandbox with FSKit

Offen

#29.165 geöffnet am 31.03.2026

 (6 Kommentare) (7 Reaktionen) (0 zugewiesene Personen)Java (4.465 Forks)batch import
P3help wantedteam-Remote-Exectype: feature request

Repository-Metriken

Stars
 (25.384 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 22T 20h) (77 gemergte PRs in 30 T)

Beschreibung

Description of the feature request:

@thesayyn has been studying the new https://developer.apple.com/documentation/FSKit API introduced in recent versions of MacOS. We believe this could allow a sandbox implementation that's both fast and isolated, in the sense that it avoids common sandbox escaping by following symlinks.

Background:

Alternatives:

  • Replace eager symlink creation with an on-demand userland filesystem
  • If cross-device hardlinks were permitted, it might help. The kernel security system might need changes.
  • MacFUSE has a FSkit implementation now, but you have to reduce secure boot.
  • bb-clientd uses an NFS approach but it's brittle (@jsharpe)

Which category does this issue belong to?

Action Spawns

Contributor Guide