mirror of https://github.com/CISOfy/lynis.git
[CRYP-8005] added haveged, match against process name instead of full command line, code cleanup
This commit is contained in:
parent
08f57c557d
commit
7d1fe1231a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue