2021-08-23 09:14:53 -04:00
|
|
|
//go:build !linux
|
2015-10-08 11:46:10 -04:00
|
|
|
// +build !linux
|
|
|
|
|
2018-02-05 16:05:59 -05:00
|
|
|
package idtools // import "github.com/docker/docker/pkg/idtools"
|
2015-10-08 11:46:10 -04:00
|
|
|
|
2015-10-14 14:35:48 -04:00
|
|
|
import "fmt"
|
2015-10-08 11:46:10 -04:00
|
|
|
|
|
|
|
// 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")
|
|
|
|
}
|