mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
feat: Add support for bubblewrap sandbox
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user