package usergroup
import "github.com/dotcloud/docker/internal/usergroup"
Index ¶
- func AddNamespaceRangesUser(name string) (int, int, error)
- func LoadIdentityMapping(name string) (idtools.IdentityMapping, error)
- func LookupGID(gid int) (user.Group, error)
- func LookupGroup(name string) (user.Group, error)
- func LookupUID(uid int) (user.User, error)
- func LookupUser(name string) (user.User, error)
Functions ¶
func AddNamespaceRangesUser ¶
AddNamespaceRangesUser takes a name and finds an unused uid, gid pair and calls the appropriate helper function to add the group and then the user to the group in /etc/group and /etc/passwd respectively.
func LoadIdentityMapping ¶
func LoadIdentityMapping(name string) (idtools.IdentityMapping, error)
LoadIdentityMapping takes a requested username and using the data from /etc/sub{uid,gid} ranges, creates the proper uid and gid remapping ranges for that user/group pair
func LookupGID ¶
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
func LookupGroup ¶
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
func LookupUID ¶
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
func LookupUser ¶
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
Source Files ¶
add_unsupported.go lookup_unix.go parser.go utils_unix.go
- Version
- v28.0.1+incompatible
- Published
- Feb 26, 2025
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 37 minutes ago –
Tools for package owners.