# Functions
Command creates a new Cmd which can be customized.
ExecRunnable runs the specified unshare command, captures its exit status, and exits with the same status.
GetHostIDMappings reads mappings for the specified process (or the current process if pid is "self" or an empty string) from the kernel.
GetRootlessGID returns the GID of the user in the parent userNS.
GetRootlessUID returns the UID of the user in the parent userNS.
GetSubIDMappings reads mappings from /etc/subuid and /etc/subgid.
HasCapSysAdmin returns whether the current process has CAP_SYS_ADMIN.
HomeDir returns the home directory for the current user.
IsRootless tells us if we are running in rootless mode.
IsSetID checks if specified path has correct FileMode (Setuid|SETGID) or the matching file capability.
MaybeReexecUsingUserNamespace re-exec the process in a new namespace.
ParseIDMappings parses mapping triples.
RootlessEnv returns the environment settings for the rootless containers.
# Constants
UsernsEnvName is the environment variable, if set indicates in rootless mode.
# Structs
Cmd wraps an exec.Cmd created by the reexec package in unshare(), and handles setting ID maps and other related settings by triggering initialization code in the child.
# Interfaces
No description provided by the author