Skip to content

Commit

Permalink
specconv: avoid skipping gidmappings applied when uidmappings is empty
Browse files Browse the repository at this point in the history
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
  • Loading branch information
Ma Shimiao committed Nov 30, 2017
1 parent e8149af commit 57edfbb
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 @@ -618,9 +618,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 57edfbb

Please sign in to comment.