Files
pmg/sandbox/platform/platform_darwin.go
Abhisek DattaandGitHub b8588e3df4 feat: Add Sandbox Inspection and Debugging Commands (#261)
* feat: add sandbox DX commands

* fix: Linter errors

* fix: Sandbox deny log parsing

* fix: Sandbox docs

* refactor: Maintain SSOT across pkg dependencies

* fix: Linter errors
2026-05-19 14:40:54 +05:30

19 lines
534 B
Go

//go:build darwin
// +build darwin
package platform
import "github.com/safedep/pmg/sandbox"
// NewSandbox creates a platform-specific sandbox instance for macOS.
// Uses Seatbelt (sandbox-exec) for process isolation.
func NewSandbox() (sandbox.Sandbox, error) {
return newSeatbeltSandbox()
}
// NewSeatbeltSandbox returns a Seatbelt-backed sandbox instance regardless of
// any platform-wide driver selection. Useful for per-driver diagnostics.
func NewSeatbeltSandbox() (sandbox.Sandbox, error) {
return newSeatbeltSandbox()
}