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:
authorMichael Boelen <michael.boelen@cisofy.com>2016-10-15 16:34:03 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-10-15 16:34:03 +0300
commitb936f3b05bd1a0b9a41cb4903b714fa8468db515 (patch)
tree2971980aef870c0dbb6c44683bdc7cb6df066076 /include/tests_firewalls
parentc4b6aab8c7ab2d2a975f4dfcbef581a05fd256e1 (diff)
[FIRE-4530] Don't show error on screen for missing IPFW sysctl key
Diffstat (limited to 'include/tests_firewalls')
-rw-r--r--include/tests_firewalls5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/tests_firewalls b/include/tests_firewalls
index bbad2ce1..d92e28cc 100644
--- a/include/tests_firewalls
+++ b/include/tests_firewalls
@@ -329,7 +329,7 @@
if [ ${SKIPTEST} -eq 0 ]; then
if [ ! -z "${SYSCTLBINARY}" ]; then
# For now, only check for IPv4.
- FIND=$(${SYSCTLBINARY} net.inet.ip.fw.enable | ${AWKBINARY} '{ print $2 }')
+ FIND=$(${SYSCTLBINARY} net.inet.ip.fw.enable 2> /dev/null | ${AWKBINARY} '{ print $2 }')
if [ "${FIND}" = "1" ]; then
Display --indent 2 --text "- Checking IPFW status" --result "${STATUS_RUNNING}" --color GREEN
LogText "Result: IPFW is running for IPv4"
@@ -345,11 +345,10 @@
LogText "Result: IPFW is disabled at start-up for IPv4"
fi
else
- Display --indent 2 --text "- Checking IPFW status" --result "${STATUS_NOT_RUNNING}" --color YELLOW
+ if IsVerbose; then Display --indent 2 --text "- Checking IPFW status" --result "${STATUS_NOT_RUNNING}" --color YELLOW; fi
LogText "Result: IPFW is not running for IPv4"
fi
else
- Display --indent 2 --text "- Checking IPFW" --result "${STATUS_SKIPPED}" --color YELLOW
ReportException "${TEST_NO}:1" "No IPFW test available (sysctl missing)"
fi
fi