Skip to content

Commit

Permalink
Merge pull request #1665 from Mashimiao/gidmapping-valid-fix
Browse files Browse the repository at this point in the history
specconv: avoid skipping gidmappings applied when uidmappings is empty
  • Loading branch information
Mrunal Patel authored Dec 11, 2017
2 parents b028413 + 57edfbb commit c6e4a1e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libcontainer/specconv/spec_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,9 +620,6 @@ func setupUserNamespace(spec *specs.Spec, config *configs.Config) error {
}
}
if spec.Linux != nil {
if len(spec.Linux.UIDMappings) == 0 {
return nil
}
for _, m := range spec.Linux.UIDMappings {
config.UidMappings = append(config.UidMappings, create(m))
}
Expand Down

0 comments on commit c6e4a1e

Please sign in to comment.