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 ¶
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 ¶
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)
Types ¶
type ChrootConfig ¶
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.
Click to show internal directories.
Click to hide internal directories.