[CRYP-8005] added haveged, match against process name instead of full command line, code cleanup

This commit is contained in:
Michael Boelen 2020-03-23 14:29:47 +01:00
parent 08f57c557d
commit 7d1fe1231a
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 7 additions and 7 deletions

View File

@ -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