mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
* feat: Add support for bubblewrap sandbox * fix: Glob pattern expansion limit for linux * fix: Bug in glob pattern expansion for bwrap * fix: README on trust * fix: Multiple bubblewrap translator fix * test: Add E2E for linux sandbox * fix: Refactor bwrap sandbox to use common dangerous files * fix: Path test case * fix: Non-existent path handling bug * refactor: Misc cleanup * fix: Avoid bind mount for non-existentent deny protection * fix: Off by one bug in path depth handling * ci: Disable AppArmor on GHA runner * fix: Disable apparmor userns restrictions
15 lines
321 B
Go
15 lines
321 B
Go
//go:build linux
|
|
// +build linux
|
|
|
|
package platform
|
|
|
|
import (
|
|
"github.com/safedep/pmg/sandbox"
|
|
)
|
|
|
|
// NewSandbox creates a platform-specific sandbox instance for Linux.
|
|
// Uses Bubblewrap (bwrap) for filesystem, network, and process isolation.
|
|
func NewSandbox() (sandbox.Sandbox, error) {
|
|
return newBubblewrapSandbox()
|
|
}
|