exec

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package goexec provides the utilities to analyse the executable code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvVars added in v1.9.0

func EnvVars(pid int32) (map[string]string, error)

func FindExeSymbols added in v0.3.1

func FindExeSymbols(f *elf.File, lookup map[string]struct{}) (map[string]Sym, error)

func FindLibMaps

func FindLibMaps(pid int32) ([]*procfs.ProcMap, error)

func FindNamespace added in v1.7.0

func FindNamespace(pid int32) (uint32, error)

func FindNamespacedPids added in v1.7.0

func FindNamespacedPids(pid int32) ([]uint32, error)

func FindProcLanguage added in v0.3.1

func FindProcLanguage(pid int32, elfF *elf.File, path string) svc.InstrumentableType

func LibPath

func LibPath(name string, maps []*procfs.ProcMap) *procfs.ProcMap

Types

type FileInfo

type FileInfo struct {
	Service svc.Attrs

	CmdExePath     string
	ProExeLinkPath string
	ELF            *elf.File
	Pid            int32
	Ppid           int32
	Ino            uint64
	Ns             uint32
}

func FindExecELF

func FindExecELF(p *services.ProcessInfo, svcID svc.Attrs, k8sEnabled bool) (*FileInfo, error)

func (*FileInfo) ExecutableName

func (fi *FileInfo) ExecutableName() string

type Sym added in v0.3.1

type Sym struct {
	Off  uint64
	Len  uint64
	Prog *elf.Prog
}

Jump to

Keyboard shortcuts

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