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:
authorMichael Boelen <michael.boelen@cisofy.com>2020-03-23 16:29:47 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-03-23 16:29:47 +0300
commit7d1fe1231a564a30f5a926b5eadb38dc3e22de86 (patch)
treeefb41a39637b17fb3b3f676de9230a72dd9e60c1 /include/tests_crypto
parent08f57c557d78f580e19971c6a7f99a5a99b00bf9 (diff)
[CRYP-8005] added haveged, match against process name instead of full command line, code cleanup
Diffstat (limited to 'include/tests_crypto')
-rw-r--r--include/tests_crypto14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/tests_crypto b/include/tests_crypto
index 5c2a0804..09507aac 100644
--- a/include/tests_crypto
+++ b/include/tests_crypto
@@ -229,13 +229,13 @@
Register --test-no CRYP-8005 --os Linux --weight L --network NO --root-only NO --category security --description "Presence of software pseudo random number generators"
if [ ${SKIPTEST} -eq 0 ]; then
LogText "Test: looking for software pseudo random number generators"
- FOUND=""
- for SERVICE in audio-entropyd havegd jitterentropy-rngd; do
- if IsRunning "${SERVICE}" --full; then
- FOUND="${FOUND} ${SERVICE}"
- fi
- done
- if [ -z "${FOUND}" ]; then
+ FOUND=""
+ for SERVICE in audio-entropyd havegd haveged jitterentropy-rngd; do
+ if IsRunning "${SERVICE}"; then
+ FOUND="${FOUND} ${SERVICE}"
+ fi
+ done
+ if [ -z "${FOUND}" ]; then
Display --indent 2 --text "- SW prng" --result "${STATUS_NO}" --color YELLOW
ReportSuggestion "${TEST_NO}" "Utilize software pseudo random number generators"
else