Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2014-10-14 12:54:02 +0400
committermboelen <michael@cisofy.com>2014-10-14 12:54:02 +0400
commit1e624d5f2e22b47dd121306d12b877ec5b432ef4 (patch)
treef2154982f5554eedab635120c150aa24339c8bd6
parentbd5c9ddd7bf06887fcd8c73d09591644d8cfa87f (diff)
Improved text
-rw-r--r--include/tests_ports_packages10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages
index 766f301b..09aa785b 100644
--- a/include/tests_ports_packages
+++ b/include/tests_ports_packages
@@ -835,16 +835,16 @@
# 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:" | 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"
- ReportException "${TEST_NO}:1" "glsa-check did not provide any result"
+ logtext "Result: unexpected result: wc should report 0 if no vulnerable packages are found."
+ logtext "Notes: Check if system is up-to-date, security updates check (glsa-check) gives and unexpected result"
+ ReportException "${TEST_NO}:1" "glsa-check did not provide any result, which is unexpected"
else
if [ "${FIND}" = "0" ]; then
logtext "Result; no vulnerable packages found via glsa-check"
- SCAN_PERFORMED=1
+ Display --indent 2 --text "- Checking vulnerable packages (glsa-check)" --result OK --color GREEN
else
VULNERABLE_PACKAGES_FOUND=1
- SCAN_PERFORMED=1
+ Display --indent 2 --text "- Checking vulnerable packages (glsa-check)" --result FOUND --color RED
logtext "Result: found ${FIND} security updates with glsa-check"
ReportWarning "${TEST_NO}" "H" "Found ${FIND} security update(s) with glsa-check."
logtext "Notes: Run 'glsa-check -t all' to see which GLSA(s) were identified."