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 ¶
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 ¶
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 ¶
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.