Skip to content

Commit c6e4a1e

Browse files
author
Mrunal Patel
authored
Merge pull request #1665 from Mashimiao/gidmapping-valid-fix
specconv: avoid skipping gidmappings applied when uidmappings is empty
2 parents b028413 + 57edfbb commit c6e4a1e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

libcontainer/specconv/spec_linux.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -620,9 +620,6 @@ func setupUserNamespace(spec *specs.Spec, config *configs.Config) error {
620620
}
621621
}
622622
if spec.Linux != nil {
623-
if len(spec.Linux.UIDMappings) == 0 {
624-
return nil
625-
}
626623
for _, m := range spec.Linux.UIDMappings {
627624
config.UidMappings = append(config.UidMappings, create(m))
628625
}

0 commit comments

Comments
 (0)