mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-06-19 14:38:53 +00:00
Add comment about procps limitation (#333)
This commit is contained in:
parent
08097d2211
commit
25b2c5da5a
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user