Skip to content

Commit 57edfbb

Browse files
author
Ma Shimiao
committed
specconv: avoid skipping gidmappings applied when uidmappings is empty
Signed-off-by: Ma Shimiao <[email protected]>
1 parent e8149af commit 57edfbb

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
@@ -618,9 +618,6 @@ func setupUserNamespace(spec *specs.Spec, config *configs.Config) error {
618618
}
619619
}
620620
if spec.Linux != nil {
621-
if len(spec.Linux.UIDMappings) == 0 {
622-
return nil
623-
}
624621
for _, m := range spec.Linux.UIDMappings {
625622
config.UidMappings = append(config.UidMappings, create(m))
626623
}

0 commit comments

Comments
 (0)