Skip to content

Commit e7ee761

Browse files
author
Ma Shimiao
committed
remove kernel limit for id mappings
the limit depends on different kernel version and not definitely required by spec Signed-off-by: Ma Shimiao <[email protected]>
1 parent efaa669 commit e7ee761

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
@@ -615,10 +615,6 @@ func (v *Validator) CheckLinux() (errs error) {
615615

616616
if (len(v.spec.Linux.UIDMappings) > 0 || len(v.spec.Linux.GIDMappings) > 0) && !nsTypeList[rspec.UserNamespace].newExist {
617617
errs = multierror.Append(errs, errors.New("the UID/GID mappings requires a new User namespace to be specified as well"))
618-
} else if len(v.spec.Linux.UIDMappings) > 5 {
619-
errs = multierror.Append(errs, errors.New("only 5 UID mappings are allowed (linux kernel restriction)"))
620-
} else if len(v.spec.Linux.GIDMappings) > 5 {
621-
errs = multierror.Append(errs, errors.New("only 5 GID mappings are allowed (linux kernel restriction)"))
622618
}
623619

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

0 commit comments

Comments
 (0)