Documentation
¶
Index ¶
- Constants
- Variables
- func Command(ctx context.Context, spec Spec, name string, args ...string) (*exec.Cmd, error)
- func ControlPlaneEnvDeny() []string
- func DefaultEnvAllow() []string
- func DefaultEnvDeny() []string
- func EnvScrub(mode string, extraAllow, extraDeny []string) func(parent []string) []string
- func LoadCarveouts(r io.Reader) (fs []FSCarveout, net []NetCarveout, err error)
- func OverlayEnv(env []string, set map[string]string) []string
- func ParseEnvList(s string) []string
- func Preflight() error
- func ScrubModeValid(mode string) bool
- func SecretEnvDeny() []string
- func ShimMain() (handled bool, err error)
- func SystemExecDirs() []string
- type EnvPolicy
- type FSCarveout
- type NetCarveout
- type Spec
Constants ¶
View Source
const ( ScrubOff = "off" ScrubDenySecrets = "deny-secrets" ScrubStrict = "strict" )
View Source
const ( ModeRO = "ro" ModeRW = "rw" )
Variables ¶
View Source
var ErrInvalidCarveout = errors.New("libsandbox: invalid carve-out")
View Source
var ErrInvalidSpec = errors.New("libsandbox: invalid spec")
View Source
var ErrIsolation = errors.New("libsandbox: isolation failure")
View Source
var ErrLandlockUnsupported = errors.New("libsandbox: landlock unsupported by kernel")
Functions ¶
func ControlPlaneEnvDeny ¶
func ControlPlaneEnvDeny() []string
func DefaultEnvAllow ¶
func DefaultEnvAllow() []string
func DefaultEnvDeny ¶
func DefaultEnvDeny() []string
func LoadCarveouts ¶
func LoadCarveouts(r io.Reader) (fs []FSCarveout, net []NetCarveout, err error)
func ParseEnvList ¶
func ScrubModeValid ¶
func SecretEnvDeny ¶
func SecretEnvDeny() []string
func SystemExecDirs ¶
func SystemExecDirs() []string
Types ¶
type FSCarveout ¶
type NetCarveout ¶
type Spec ¶
type Spec struct {
WorkspaceRoot string
Home string
EnvAllow []string
EnvSet map[string]string
FS []FSCarveout
Net []NetCarveout
AllowPrivateEgress bool
NetworkWall bool
Tracker libtracker.ActivityTracker
SyscallTap bool
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.