Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2016-04-27 11:30:40 +0300
committermboelen <michael@cisofy.com>2016-04-27 11:30:40 +0300
commit84d619852aabde7c35afd7f780a16d6d91579ecc (patch)
treee6054382d8f1499be6eee9039a8f595beadaedef /include/tests_memory_processes
parent24e5e756119b8b77f35f7e56a7b516d676e009da (diff)
[PROC-3612] Removed wchan from output to solve issue with grsecurity-enabled kernel
Diffstat (limited to 'include/tests_memory_processes')
-rw-r--r--include/tests_memory_processes4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_memory_processes b/include/tests_memory_processes
index 2fa2293c..51a8ecf3 100644
--- a/include/tests_memory_processes
+++ b/include/tests_memory_processes
@@ -73,9 +73,9 @@
Register --test-no PROC-3612 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check dead or zombie processes"
if [ ${SKIPTEST} -eq 0 ]; then
if [ "${OS}" = "AIX" ]; then
- FIND=`${PSBINARY} -Ae -o pid,wchan,stat,comm | awk '{ if ($3 ~ /Z|X/) print $1 }' | xargs`
+ FIND=`${PSBINARY} -Ae -o pid,stat,comm | awk '{ if ($2 ~ /Z|X/) print $1 }' | xargs`
else
- FIND=`${PSBINARY} x -o pid,wchan,stat,comm | awk '{ if ($3 ~ /Z|X/) print $1 }' | xargs`
+ FIND=`${PSBINARY} x -o pid,stat,comm | awk '{ if ($2 ~ /Z|X/) print $1 }' | xargs`
fi
if [ "${FIND}" = "" ]; then
LogText "Result: no zombie processes found"