helper

package
v0.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package helper starts the programs fiberd hands privileged work to, such as criu, runc, runsc and ldd. A helper runs from a fixed path with a fixed environment, so it sees only what fiberd chose. fiberd's own environment stays as it started, because an operator's proxy settings live there.

Index

Constants

View Source
const PathEnv = "PATH=/usr/bin:/bin"

PathEnv is the PATH of every process fiberd gives a fixed environment.

Variables

This section is empty.

Functions

func Command

func Command(ctx context.Context, name string, args ...string) *exec.Cmd

Command is exec.CommandContext for a helper, started from the path Resolve gives with PathEnv as its whole environment. A name Resolve refuses fails at the start with Resolve's error.

func Resolve

func Resolve(name string) (string, error)

Resolve is the path of the helper called name. A caller needs it for a helper that runs through a wrapper, since PathEnv reaches only part of dirs. A bare name is found in dirs and never on PATH. An absolute name is returned as it is, and its exec says whether it exists. A relative path is refused, because the working directory would pick the program.

Types

This section is empty.

Jump to

Keyboard shortcuts

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