From 349254e2284f46a790e58adf7473d878bdc031a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E8=BE=B0=E6=99=94=20=28Liang=20Chenye=29?= Date: Thu, 9 Mar 2017 00:26:47 +0800 Subject: [PATCH] Revert "validate: add the verification content" --- validate/validate.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/validate/validate.go b/validate/validate.go index 1491bb88b..bf4c2d4a7 100644 --- a/validate/validate.go +++ b/validate/validate.go @@ -265,11 +265,6 @@ func (v *Validator) CheckProcess() (msgs []string) { if err := rlimitValid(rlimit); err != nil { msgs = append(msgs, err.Error()) } - for i := index + 1; i < len(process.Rlimits); i++ { - if process.Rlimits[index].Type == process.Rlimits[i].Type { - msgs = append(msgs, fmt.Sprintf("rlimit can not contain the same type %q.", process.Rlimits[index].Type)) - } - } } if len(process.ApparmorProfile) > 0 {