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:39:34 +0400
committermboelen <michael@cisofy.com>2014-10-14 12:39:34 +0400
commitd6dbbeedb5b7ca985a907d5e2775f6a8128d777b (patch)
treeaa796d47e8c69ff89609a974b5bb9181c0402bba /include/tests_ports_packages
parentae0dcdfcfd45f20d0ec673fdfdd71fbba09f5862 (diff)
Added warning when GLSA finds security updates
Diffstat (limited to 'include/tests_ports_packages')
-rw-r--r--include/tests_ports_packages7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages
index 4d2d579d..766f301b 100644
--- a/include/tests_ports_packages
+++ b/include/tests_ports_packages
@@ -836,8 +836,8 @@
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"
- ReportExcpetion "${TEST_NO}:1" "glsa-check did not provide any result"
+ #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"
else
if [ "${FIND}" = "0" ]; then
logtext "Result; no vulnerable packages found via glsa-check"
@@ -846,7 +846,8 @@
VULNERABLE_PACKAGES_FOUND=1
SCAN_PERFORMED=1
logtext "Result: found ${FIND} security updates with glsa-check"
- ReportSuggestion ${TEST_NO} "Found ${FIND} security update(s) with glsa-check. Run 'glsa-check -t all' to see which GLSA(s) were identified."
+ 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."
AddHP 0 25
fi
fi