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>2015-04-07 18:19:49 +0300
committermboelen <michael@cisofy.com>2015-04-07 18:19:49 +0300
commit7ad2dd5480469793fba0abbb6b96b6200330b3d9 (patch)
tree7484f7c7a8908a0f263dc09f3475649085d071bd
parente21e8679e0514a75a0c11a889f192f6cc435752c (diff)
Change pf firewall detection
-rw-r--r--include/tests_firewalls4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_firewalls b/include/tests_firewalls
index c5d06838..5a529d35 100644
--- a/include/tests_firewalls
+++ b/include/tests_firewalls
@@ -146,7 +146,7 @@
# Check status with pfctl
logtext "Test: checking pf status via pfctl"
- if [ ! "${PFCTLBINARY}" = "" -a -f /dev/pf ]; then
+ if [ ! "${PFCTLBINARY}" = "" ]; then
FIND=`${PFCTLBINARY} -sa 2>&1 | grep "^Status" | head -1 | awk '{ print $2 }'`
if [ "${FIND}" = "Enabled" ]; then
Display --indent 2 --text "- Checking pf status (pfctl)" --result ENABLED --color GREEN
@@ -166,7 +166,7 @@
fi
# If we didn't find the status to be enabled, stop searching
- if [ ${PFFOUND} -eq 1 ]; then
+ if [ ${PFFOUND} -eq 0 ]; then
# Check for pf kernel module (FreeBSD and similar)
logtext "Test: searching for pf kernel module"
if [ ! "${KLDSTATBINARY}" = "" ]; then