Skip to content

Commit

Permalink
pkg/util: Add pid information descriptors for FreeBSD
Browse files Browse the repository at this point in the history
[NO NEW TESTS NEEDED]

Signed-off-by: Doug Rabson <[email protected]>
  • Loading branch information
dfr authored and mheon committed Oct 18, 2022
1 parent 3810a9d commit e333066
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions pkg/util/utils_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,29 @@
package util

import (
"errors"

"github.com/opencontainers/runtime-tools/generate"
)

func GetContainerPidInformationDescriptors() ([]string, error) {
return []string{}, errors.New("this function is not supported on freebsd")
// These are chosen to match the set of AIX format descriptors
// supported in Linux - FreeBSD ps does support (many) others.
return []string{
"args",
"comm",
"etime",
"group",
"nice",
"pcpu",
"pgid",
"pid",
"ppid",
"rgroup",
"ruser",
"time",
"tty",
"user",
"vsz",
}, nil
}

func AddPrivilegedDevices(g *generate.Generator, systemdMode bool) error {
Expand Down

0 comments on commit e333066

Please sign in to comment.