utils: Enable cgroup utils for FreeBSD

This probably makes sense when using podman-remote and it lets the unit
tests pass which makes 'make localunit' happy.

[NO NEW TESTS NEEDED]

Signed-off-by: Doug Rabson <dfr@rabson.org>
This commit is contained in:
Doug Rabson
2022-11-08 12:05:45 +00:00
parent e5f7fbcbe6
commit a9852aa8ff
3 changed files with 4 additions and 26 deletions

View File

@ -1,22 +0,0 @@
//go:build freebsd
// +build freebsd
package utils
import "errors"
func RunUnderSystemdScope(pid int, slice string, unitName string) error {
return errors.New("not implemented for freebsd")
}
func MoveUnderCgroupSubtree(subtree string) error {
return errors.New("not implemented for freebsd")
}
func GetOwnCgroup() (string, error) {
return "", errors.New("not implemented for freebsd")
}
func GetCgroupProcess(pid int) (string, error) {
return "", errors.New("not implemented for freebsd")
}

View File

@ -1,5 +1,5 @@
//go:build linux || darwin
// +build linux darwin
//go:build linux || darwin || freebsd
// +build linux darwin freebsd
package utils

View File

@ -1,5 +1,5 @@
//go:build linux || darwin
// +build linux darwin
//go:build linux || darwin || freebsd
// +build linux darwin freebsd
package utils