File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -271,6 +271,11 @@ func validateRlimits(spec *rspec.Spec) error {
271271 return nil
272272 }
273273
274+ if runtime .GOOS != "linux" && runtime .GOOS != "solaris" {
275+ logrus .Warnf ("process.rlimits validation not yet implemented for OS %q" , runtime .GOOS )
276+ return nil
277+ }
278+
274279 for _ , r := range spec .Process .Rlimits {
275280 rl , err := strToRlimit (r .Type )
276281 if err != nil {
@@ -729,6 +734,10 @@ func run(context *cli.Context) error {
729734 test : validateMounts ,
730735 description : "mounts" ,
731736 },
737+ {
738+ test : validateRlimits ,
739+ description : "rlimits" ,
740+ },
732741 }
733742
734743 linuxValidations := []validation {
@@ -768,10 +777,6 @@ func run(context *cli.Context) error {
768777 test : validateROPaths ,
769778 description : "read only paths" ,
770779 },
771- {
772- test : validateRlimits ,
773- description : "rlimits" ,
774- },
775780 {
776781 test : validateSysctls ,
777782 description : "sysctls" ,
You can’t perform that action at this time.
0 commit comments