ldconfig

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: Apache-2.0 Imports: 14 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 New

func New(ldconfigPath string, inRoot string) (*Ldconfig, error)

New creates an Ldconfig struct that is used to perform operations on the ldcache and libraries in a particular root (e.g. a container).

func (*Ldconfig) UpdateLDCache

func (l *Ldconfig) UpdateLDCache(directories ...string) error

Jump to

Keyboard shortcuts

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