mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
ae8c004dc1
This fixes errors in ownership on directory creation during build that can cause inaccessible files depending on the paths in the Dockerfile and non-existing directories in the starting image. Add tests for the mkdir variants in pkg/idtools Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
12 lines
404 B
Go
12 lines
404 B
Go
// +build !linux
|
|
|
|
package idtools
|
|
|
|
import "fmt"
|
|
|
|
// 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 AddNamespaceRangesUser(name string) (int, int, error) {
|
|
return -1, -1, fmt.Errorf("No support for adding users or groups on this OS")
|
|
}
|