systembin

package
v0.17.4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package systembin resolves an image-baked system binary to an absolute path from a fixed directory set, so a server spawn's argv[0] does not come from PATH, which can hold the tools engine's bin/ on the persistent volume, a directory an agent shell can write.

Only for binaries whose trust argument holds: git and bash are apt packages in /usr/bin, which nothing at runtime writes. NOT a general resolver: a toolbelt-managed binary (npm) lives in that writable directory, so pinning it would confine nothing. It reads no environment (no PATH, no override), and excludes /usr/local/bin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(name string) (string, bool)

Resolve returns the absolute path of an image-baked binary and whether it was found. On a miss the caller must REFUSE: one site's bare-name fallback voids the pin everywhere. A name containing a path separator is refused.

Types

This section is empty.

Jump to

Keyboard shortcuts

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