summaryrefslogtreecommitdiff
path: root/pkg/idtools/usergroupadd_unsupported.go
blob: 5e24577e2c26e681b9cdf4b66b176bd8b0efa944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//go:build !linux
// +build !linux

package idtools // import "github.com/docker/docker/pkg/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")
}