Documentation
¶
Overview ¶
Package tar contains helper functions for working with tar files
Index ¶
Constants ¶
Variables ¶
Functions ¶
func ExtractTar ¶
func ExtractTar(rs io.Reader, dir string, overwrite bool, uidRange *uid.UidRange, pwl PathWhitelistMap) error
ExtractTar extracts a tarball (from a io.Reader) into the given directory if pwl is not nil, only the paths in the map are extracted. If overwrite is true, existing files will be overwritten. The extraction is executed by fork/exec()ing a new process. The new process needs the CAP_SYS_CHROOT capability.
Types ¶
Click to show internal directories.
Click to hide internal directories.