lib

package
v0.0.0-...-be24087 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyAdditionalSettings

func CopyAdditionalSettings(path string)

CopyAdditionalSettings allows us to, copy anything that should be included in order for the chroot to work, for example, basic configuration files in /etc, and the user

func CopyToDir

func CopyToDir(bins []string, libs []string, path string)

CopyToDir allows us to copy the generated paths to the final destination to where the user wants the chroot to be generated

func GetConfig

func GetConfig(cfg *ChrootConfig)

func GetLinkedLibs

func GetLinkedLibs(libraryFile []string) []string

GetLinkedLibs is a function that allows us to

  • get libraries, that are necesary for getting a file to
  • run, the command changes, depending if it is an ELF binary (Linux)
  • or a mach-o binary (Darwin)

func MountAll

func MountAll(base string)

Types

type ChrootConfig

type ChrootConfig struct {
	Bins  []string `yaml:"bins"`
	Extra []string `yaml:"extras"`
}

ChrootConfig type allows us to

  • unify storing into a data structure
  • the information of a chroot, like the bins
  • libraries, name and path
  • its meant to make post configuration of a chroot
  • easier.

Jump to

Keyboard shortcuts

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