Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pkg/sandbox/sandbox_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ const ConfigurationLlamaCpp = `(version 1)
;;; Deny access to job creation.
(deny job-creation)

;;; Deny access to launchservicesd to prevent sandbox escape via open(1).
;;; Without this, a sandboxed process can invoke open(1) which uses
;;; launchservicesd to ask launchd to spawn a new process, bypassing
;;; job-creation restrictions because launchd (not the sandbox) is the
;;; actual parent. See ZDI-CAN-29308.
(deny mach-lookup
(global-name "com.apple.launchservicesd")
(global-name "com.apple.coreservices.launchservicesd"))

;;; Don't allow new executable code to be created in memory at runtime.
(deny dynamic-code-generation)

Expand Down