mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
[SSH-7408]: Implemented '<' test type.
This commit is contained in:
parent
013886ec16
commit
9a30640327
1 changed files with 11 additions and 0 deletions
|
|
@ -135,6 +135,17 @@
|
|||
else
|
||||
RESULT="UNKNOWN"
|
||||
fi
|
||||
|
||||
elif [ "${TESTTYPE}" = "<" ]; then
|
||||
if [ "${FOUNDVALUE}" -ge "${WEAKVALUE}" ]; then
|
||||
RESULT="WEAK"
|
||||
elif [ "${FOUNDVALUE}" -ge "${MEDIUMSCOREDVALUE}" -o "${FOUNDVALUE}" -le "${MEDIUMSCOREDVALUE}" ]; then
|
||||
RESULT="MIDSCORED"
|
||||
elif [ "${FOUNDVALUE}" -le "${EXPECTEDVALUE}" ]; then
|
||||
RESULT="GOOD"
|
||||
else
|
||||
RESULT="UNKNOWN"
|
||||
fi
|
||||
else
|
||||
RESULT="NONE"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue