process

package
v0.3.258 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LD_PRELOAD_ENV_VARS = []string{
	"LD_PRELOAD",
	"LD_LIBRARY_PATH",
	"LD_AUDIT",
	"LD_BIND_NOW",
	"LD_DEBUG",
	"LD_PROFILE",
	"LD_USE_LOAD_BIAS",
	"LD_SHOW_AUXV",
	"LD_ORIGIN_PATH",
	"LD_LIBRARY_PATH_FDS",
	"LD_ASSUME_KERNEL",
	"LD_VERBOSE",
	"LD_WARN",
	"LD_TRACE_LOADED_OBJECTS",
	"LD_BIND_NOT",
	"LD_NOWARN",
	"LD_HWCAP_MASK",
	"LD_SHOW_AUXV",
	"LD_USE_LOAD_BIAS",
	"LD_ORIGIN_PATH",
	"LD_LIBRARY_PATH_FDS",
	"LD_ASSUME_KERNEL",
	"LD_VERBOSE",
	"LD_WARN",
	"LD_TRACE_LOADED_OBJECTS",
	"LD_BIND_NOT",
	"LD_NOWARN",
	"LD_HWCAP_MASK",
}

LD_PRELOAD_ENV_VARS contains the environment variables that can be used for LD_PRELOAD

Functions

func GetLdHookVar

func GetLdHookVar(envVars map[string]string) (string, bool)

GetLdHookVar checks if any LD_PRELOAD environment variables are set

func GetProcessEnv

func GetProcessEnv(pid int) (map[string]string, error)

GetProcessEnv reads a process's live /proc/<pid>/environ at call time, not at exec-event capture time. Short-lived processes can exit before the read; their environment cannot be recovered from the exec event by this helper.

func New

func New(config config.Config) libraries.Library

func Process

func Process(config config.Config) cel.EnvOption

Types

This section is empty.

Jump to

Keyboard shortcuts

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