2015-10-08 15:46:10 +00:00
|
|
|
// +build !linux
|
|
|
|
|
|
|
|
package idtools
|
|
|
|
|
2015-10-14 18:35:48 +00:00
|
|
|
import "fmt"
|
2015-10-08 15:46:10 +00: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")
|
|
|
|
}
|