hostsandbox

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package hostsandbox is what the host does to itself before it loads a core. The server's part (job objects, namespaces, sandbox profiles) is in the stream package, and docs/GAMING.md lists what each platform gets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(l Limits) error

Apply boxes the process in: resource limits, no new privileges, a syscall filter that refuses networking and starting programs, and Landlock limiting writes. Failures in the layers a kernel or container doesn't offer are returned together, and the layers that worked stay on.

Types

type Limits

type Limits struct {
	SaveDir  string // the only folder it may write to
	MemoryMB int64  // address space limit; 0 for none
}

Limits are the boundaries a host sets for itself.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL