Add comment about procps limitation (#333)

pull/342/head^2
Liz Rice 5 years ago committed by GitHub
parent 08097d2211
commit 25b2c5da5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 {

Loading…
Cancel
Save