From e7ee76106f138a6352630ea0e98e4ed250d7c5b7 Mon Sep 17 00:00:00 2001 From: Ma Shimiao Date: Sat, 2 Dec 2017 13:42:47 +0800 Subject: [PATCH] remove kernel limit for id mappings the limit depends on different kernel version and not definitely required by spec Signed-off-by: Ma Shimiao --- validate/validate.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/validate/validate.go b/validate/validate.go index fd24b8e0d..7372be4b5 100644 --- a/validate/validate.go +++ b/validate/validate.go @@ -615,10 +615,6 @@ func (v *Validator) CheckLinux() (errs error) { if (len(v.spec.Linux.UIDMappings) > 0 || len(v.spec.Linux.GIDMappings) > 0) && !nsTypeList[rspec.UserNamespace].newExist { errs = multierror.Append(errs, errors.New("the UID/GID mappings requires a new User namespace to be specified as well")) - } else if len(v.spec.Linux.UIDMappings) > 5 { - errs = multierror.Append(errs, errors.New("only 5 UID mappings are allowed (linux kernel restriction)")) - } else if len(v.spec.Linux.GIDMappings) > 5 { - errs = multierror.Append(errs, errors.New("only 5 GID mappings are allowed (linux kernel restriction)")) } for k := range v.spec.Linux.Sysctl {