process

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 9 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 retrieves the environment variables for a given process ID

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