cto

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cto is ext's containment product. It runs a guest under a src/cto/sandbox grant through the mechanisms in src/cto/internal/confine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string, stdout, stderr io.Writer) int

Run executes the cto command for the package guest or another Go host.

func RunAs

func RunAs(name string, args []string, stdout, stderr io.Writer) int

RunAs executes cto through a command prefix such as "ext sandbox".

func Version

func Version() string

Version is the version of this build of cto.

Types

This section is empty.

Directories

Path Synopsis
internal
admission
Package admission is CTO's side of cto.admission/v1: it runs a consumer's selected runner, reads the sandbox report the runner sends before it executes guest code, decides with sandbox.Admit and approves or refuses.
Package admission is CTO's side of cto.admission/v1: it runs a consumer's selected runner, reads the sandbox report the runner sends before it executes guest code, decides with sandbox.Admit and approves or refuses.
app
Package app is the containment product's command.
Package app is the containment product's command.
confine
Package confine restricts one local process to a sandbox grant (docs/adr-sandboxing.md, section 4) and then becomes the guest.
Package confine restricts one local process to a sandbox grant (docs/adr-sandboxing.md, section 4) and then becomes the guest.
This is the private entrypoint of the installed CTO ext package.
This is the private entrypoint of the installed CTO ext package.
Package sandbox is the portable sandbox contract that ext and github.com/webong/workload share (docs/adr-sandboxing.md): the boundary levels, the policy and lifecycle vocabulary, the rules that turn a request and a policy into a grant, the check of a grant against what a runner can enforce, and the report every launch returns.
Package sandbox is the portable sandbox contract that ext and github.com/webong/workload share (docs/adr-sandboxing.md): the boundary levels, the policy and lifecycle vocabulary, the rules that turn a request and a policy into a grant, the check of a grant against what a runner can enforce, and the report every launch returns.

Jump to

Keyboard shortcuts

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