mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
* 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
19 lines
534 B
Go
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()
|
|
}
|