mirror of https://github.com/CISOfy/lynis.git
[SSH-7408]: Implemented '<' test type.
This commit is contained in:
parent
013886ec16
commit
9a30640327
|
@ -135,6 +135,17 @@
|
||||||
else
|
else
|
||||||
RESULT="UNKNOWN"
|
RESULT="UNKNOWN"
|
||||||
fi
|
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
|
else
|
||||||
RESULT="NONE"
|
RESULT="NONE"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue