We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a652af1 commit 421f08fCopy full SHA for 421f08f
1 file changed
validate/validate.go
@@ -257,6 +257,11 @@ func (v *Validator) CheckProcess() (msgs []string) {
257
if process.Rlimits[index].Hard < process.Rlimits[index].Soft {
258
msgs = append(msgs, fmt.Sprintf("hard limit of rlimit %s should not be less than soft limit.", process.Rlimits[index].Type))
259
}
260
+ for i := index + 1; i < len(process.Rlimits); i++ {
261
+ if strings.EqualFold(process.Rlimits[index].Type, process.Rlimits[i].Type) {
262
+ msgs = append(msgs, fmt.Sprintf("rlimit can not contain the same type %q.", process.Rlimits[index].Type))
263
+ }
264
265
266
267
if len(process.ApparmorProfile) > 0 {
0 commit comments