From 25b2c5da5a57a724a6c56a2b6adb9247a5f476f7 Mon Sep 17 00:00:00 2001
From: Liz Rice <liz@lizrice.com>
Date: Mon, 8 Jul 2019 22:29:37 +0100
Subject: [PATCH] Add comment about procps limitation (#333)

---
 cmd/util.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmd/util.go b/cmd/util.go
index c63295c..f2a34f3 100644
--- a/cmd/util.go
+++ b/cmd/util.go
@@ -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 {
-- 
GitLab