pkg/specgen/generate: NOP verifyContainerResources() on freebsd

There is no point in calling into cgroup specific code as freebsd does
not support cgroups.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger committed 2023-12-07 11:24:47 +01:00
1 parent a687c38860
commit 32c25c6026
2 files changed
+8

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
package generate
import "github.com/containers/podman/v4/pkg/specgen"
// verifyContainerResources does nothing on freebsd as it has no cgroups
func verifyContainerResources(s *specgen.SpecGenerator) ([]string, error) {
return nil, nil
}
File renamed without changes.