ldconfig

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRunner

func NewRunner(id string, ldconfigPath string, containerRoot string, additionalargs ...string) (*exec.Cmd, error)

NewRunner creates an exec.Cmd that can be used to run ldconfig.

func SafeExec

func SafeExec(path string, args []string, envv []string) error

SafeExec attempts to clone the specified binary (as an memfd, for example) before executing it.

Types

type Ldconfig

type Ldconfig struct {
	// contains filtered or unexported fields
}

func NewFromArgs added in v1.18.1

func NewFromArgs(args ...string) (*Ldconfig, error)

NewFromArgs creates an Ldconfig struct from the args passed to the Cmd above. This struct is used to perform operations on the ldcache and libraries in a particular root (e.g. a container).

args[0] is the reexec initializer function name and is required.

The following flags are required:

--ldconfig-path=LDCONFIG_PATH	the path to ldconfig on the host
--container-root=CONTAINER_ROOT	the path in which ldconfig must be run

The following flags are optional:

--is-debian-like-host	Indicates that the host system is debian-like (e.g. Debian, Ubuntu)
                     	as opposed to non-Debian-like (e.g. RHEL, Fedora)
                     	See https://github.com/NVIDIA/nvidia-container-toolkit/pull/1444

The remaining args are folders where soname symlinks need to be created.

func (*Ldconfig) UpdateLDCache

func (l *Ldconfig) UpdateLDCache() error

Jump to

Keyboard shortcuts

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