Skip to content

Commit deea452

Browse files
authored
Merge pull request #531 from Mashimiao/fix-id-mappings
Fix id mappings
2 parents b18ca86 + e7ee761 commit deea452

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

validate/validate.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -627,10 +627,6 @@ func (v *Validator) CheckLinux() (errs error) {
627627

628628
if (len(v.spec.Linux.UIDMappings) > 0 || len(v.spec.Linux.GIDMappings) > 0) && !nsTypeList[rspec.UserNamespace].newExist {
629629
errs = multierror.Append(errs, errors.New("the UID/GID mappings requires a new User namespace to be specified as well"))
630-
} else if len(v.spec.Linux.UIDMappings) > 5 {
631-
errs = multierror.Append(errs, errors.New("only 5 UID mappings are allowed (linux kernel restriction)"))
632-
} else if len(v.spec.Linux.GIDMappings) > 5 {
633-
errs = multierror.Append(errs, errors.New("only 5 GID mappings are allowed (linux kernel restriction)"))
634630
}
635631

636632
for k := range v.spec.Linux.Sysctl {

0 commit comments

Comments
 (0)