so

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllLibraries = regexp.MustCompile(`\.so($|\.)`)

AllLibraries represents a filter that matches all shared libraries

Functions

This section is empty.

Types

type Library

type Library struct {
	PidsPath []string // list of host pid path like /proc/<pid> per libraryKey
	HostPath string   // path of the library seen by the host
	// contains filtered or unexported fields
}

Library define a dynamic library

func Find

func Find(filter *regexp.Regexp) []Library

Find returns the host-resolved paths of all shared libraries (per mount namespace) matching the given filter It does so by iterating over all /proc/<PID>/maps and /proc/<PID>/mountinfo files in the host If filter is nil, all entries from /proc/<PID>/maps with a pathname are reported

func FindProc

func FindProc(procPath string, filter *regexp.Regexp) []Library

Find returns the host-resolved paths of all shared libraries (per mount namespace) matching the given filter It does so by iterating over all /procPath/<PID>/maps and /procPath/<PID>/mountinfo files in the host If filter is nil, all entries from /procPath/<PID>/maps with a pathname are reported

func FromPID

func FromPID(pid int32, filter *regexp.Regexp) []Library

FromPID returns all shared libraries matching the given filter that are mapped into memory by a given PID If filter is nil, all entries from /proc/<PID>/maps with a pathname are reported

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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