Add comment about procps limitation (#333)

This commit is contained in:
Liz Rice
2019-07-08 22:29:37 +01:00
committed by GitHub
parent 08097d2211
commit 25b2c5da5a

View File

@@ -68,6 +68,8 @@ func cleanIDs(list string) map[string]bool {
// ps execs out to the ps command; it's separated into a function so we can write tests
func ps(proc string) string {
// TODO: truncate proc to 15 chars
// See https://github.com/aquasecurity/kube-bench/issues/328#issuecomment-506813344
cmd := exec.Command("ps", "-C", proc, "-o", "cmd", "--no-headers")
out, err := cmd.Output()
if err != nil {