Skip to content
Snippets Groups Projects
Unverified Commit 25b2c5da authored by Liz Rice's avatar Liz Rice Committed by GitHub
Browse files

Add comment about procps limitation (#333)

parent 08097d22
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,8 @@ func cleanIDs(list string) map[string]bool { ...@@ -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 // ps execs out to the ps command; it's separated into a function so we can write tests
func ps(proc string) string { 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") cmd := exec.Command("ps", "-C", proc, "-o", "cmd", "--no-headers")
out, err := cmd.Output() out, err := cmd.Output()
if err != nil { if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment