Merge pull request #672 from rajasec/userns-validation

handling error for userns
This commit is contained in:
Qiang Huang 2016-04-18 09:15:37 +08:00
commit d5574d1a4c
1 changed files with 0 additions and 4 deletions

View File

@ -540,10 +540,6 @@ func setupUserNamespace(spec *specs.Spec, config *configs.Config) error {
if len(spec.Linux.UIDMappings) == 0 {
return nil
}
// do not override the specified user namespace path
if config.Namespaces.PathOf(configs.NEWUSER) == "" {
config.Namespaces.Add(configs.NEWUSER, "")
}
create := func(m specs.IDMapping) configs.IDMap {
return configs.IDMap{
HostID: int(m.HostID),