feat: Add support for bubblewrap sandbox

This commit is contained in:
Abhisek Datta
2026-01-14 17:06:12 +05:30
parent b97a4c2ee5
commit 8ebaa37f14
8 changed files with 1915 additions and 10 deletions
+2 -4
View File
@@ -4,13 +4,11 @@
package platform
import (
"errors"
"github.com/safedep/pmg/sandbox"
)
// NewSandbox creates a platform-specific sandbox instance for Linux.
// TODO: Implement Bubblewrap or seccomp-bpf based sandbox.
// Uses Bubblewrap (bwrap) for filesystem, network, and process isolation.
func NewSandbox() (sandbox.Sandbox, error) {
return nil, errors.New("sandbox not yet implemented for Linux")
return newBubblewrapSandbox()
}