mirror of https://github.com/CISOfy/lynis.git
Merge pull request #19 from d4t4king/master
Minor tweak to glsa-check to show '0' when all tests are compliant
This commit is contained in:
commit
382e0f8c4f
|
@ -816,7 +816,7 @@
|
|||
logtext "Result: found /usr/bin/glsa-check"
|
||||
logtext "Test: checking if there are any vulnerable packages"
|
||||
# glsa-check reports the GLSA date/ID string, not the vulnerable package.
|
||||
FIND=`/usr/bin/glsa-check -t all 2>&1 | grep -v "This system is affected by the following GLSAs:" | wc -l`
|
||||
FIND=`/usr/bin/glsa-check -t all 2>&1 | grep -v "This system is affected by the following GLSAs:" | grep -v "This system is not affected by any of the listed GLSAs" | wc -l`
|
||||
if [ "${FIND}" = "" ]; then
|
||||
logtext "Result: unexpected result: wc should report 0 if no vulnerable packages found."
|
||||
ReportSuggestion ${TEST_NO} "Check if system is up-to-date, security updates check (glsa-check) gives and unexpected result"
|
||||
|
|
Loading…
Reference in New Issue