mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 15:54:09 +02:00
[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"
|
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
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
LogText "Test: looking for software pseudo random number generators"
|
LogText "Test: looking for software pseudo random number generators"
|
||||||
FOUND=""
|
FOUND=""
|
||||||
for SERVICE in audio-entropyd havegd jitterentropy-rngd; do
|
for SERVICE in audio-entropyd havegd haveged jitterentropy-rngd; do
|
||||||
if IsRunning "${SERVICE}" --full; then
|
if IsRunning "${SERVICE}"; then
|
||||||
FOUND="${FOUND} ${SERVICE}"
|
FOUND="${FOUND} ${SERVICE}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ -z "${FOUND}" ]; then
|
if [ -z "${FOUND}" ]; then
|
||||||
Display --indent 2 --text "- SW prng" --result "${STATUS_NO}" --color YELLOW
|
Display --indent 2 --text "- SW prng" --result "${STATUS_NO}" --color YELLOW
|
||||||
ReportSuggestion "${TEST_NO}" "Utilize software pseudo random number generators"
|
ReportSuggestion "${TEST_NO}" "Utilize software pseudo random number generators"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user