Skip to content

cloudfoundry/idmapper

Repository files navigation

IdMapper

GoDoc

idmapper is a package which will map a process to the highest user id available. It was created to be used by GrootFS, a root filesystem manager for CloudFoundry's container runtime.

Unlike the newuidmap and newgidmap commands found in Shadow, idmapper does not require this user to exist and will not check /etc/subuid for valid subuid ranges.

Commands

newuidmap / newgidmap

Will map the given process to the maximum user id available e.g.

$ newuidmap <process id>
$ newgidmap <process id>

maximus

Will return the maximum user id available.

$ maximus
# => 4294967294

idmapper package

This can be used by importing:

"code.cloudfoundry.org/idmapper"