# Functions
AddNamespaceRangesUser takes a username and uses the standard system utility to create a system user/group pair used to hold the /etc/sub{uid,gid} ranges which will be used for user namespace mapping ranges in containers.
CanAccess takes a valid (existing) directory and a uid, gid pair and determines if that uid, gid pair has access (execute bit) to the directory.
FormatContainersOverrideXattr will format the given uid, gid, and mode into a string that can be used as the value for the ContainersOverrideXattr xattr.
FormatContainersOverrideXattrDevice will format the given uid, gid, and mode into a string that can be used as the value for the ContainersOverrideXattr xattr.
GetContainersOverrideXattr will get and decode ContainersOverrideXattr.
GetRootUIDGID retrieves the remapped root uid/gid pair from the set of maps.
IsContiguous checks if the specified mapping is contiguous and doesn't have any hole.
LookupGID uses traditional local system files lookup (from libcontainer/user) on a group ID, followed by a call to `getent` for supporting host configured non-files passwd and group dbs.
LookupGroup uses traditional local system files lookup (from libcontainer/user) on a group name, followed by a call to `getent` for supporting host configured non-files passwd and group dbs.
LookupUID uses traditional local system files lookup (from libcontainer/user) on a uid, followed by a call to `getent` for supporting host configured non-files passwd and group dbs.
LookupUser uses traditional local system files lookup (from libcontainer/user) on a username, followed by a call to `getent` for supporting host configured non-files passwd and group dbs.
MkdirAllAndChown creates a directory (include any along the path) and then modifies ownership to the requested uid/gid.
MkdirAllAndChownNew creates a directory (include any along the path) and then modifies ownership ONLY of newly created directories to the requested uid/gid.
MkdirAllAs creates a directory (include any along the path) and then modifies ownership to the requested uid/gid.
MkdirAndChown creates a directory and then modifies ownership to the requested uid/gid.
MkdirAs creates a directory and then modifies ownership to the requested uid/gid.
NewIDMappings takes a requested user and group name and using the data from /etc/sub{uid,gid} ranges, creates the proper uid and gid remapping ranges for that user/group pair.
NewIDMappingsFromMaps creates a new mapping from two slices Deprecated: this is a temporary shim while transitioning to IDMapping.
ParseIDMap parses idmap triples from string.
RawToContainer takes an id mapping, and uses it to translate a host ID to the remapped ID.
RawToHost takes an id mapping and a remapped ID, and translates the ID to the mapped host ID.
No description provided by the author
No description provided by the author
SetContainersOverrideXattr will encode and set ContainersOverrideXattr.
# Constants
No description provided by the author
# Structs
IDMap contains a single entry for user namespace range remapping.
IDMappings contains a mappings of UIDs and GIDs.
IDPair is a UID and GID pair.
Stat contains file states that can be overridden with ContainersOverrideXattr.