From c4b6aab8c7ab2d2a975f4dfcbef581a05fd256e1 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sat, 15 Oct 2016 15:28:22 +0200 Subject: [PATCH] Reversed file check on /dev/pf --- include/tests_firewalls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tests_firewalls b/include/tests_firewalls index 5b4d59f6..bbad2ce1 100644 --- a/include/tests_firewalls +++ b/include/tests_firewalls @@ -191,7 +191,7 @@ # Test : FIRE-4518 # Description : Checking status of pf firewall components # Notes : Use /dev/pf as first detection method if pf is available - if [ ! -e /dev/pf ]; then PREQS_MET="YES"; SKIPREASON=""; else PREQS_MET="NO"; SKIPREASON="No /dev/pf file"; fi + if [ -e /dev/pf ]; then PREQS_MET="YES"; SKIPREASON=""; else PREQS_MET="NO"; SKIPREASON="No /dev/pf device"; fi Register --test-no FIRE-4518 --preqs-met ${PREQS_MET} --skip-reason "${SKIPREASON}" --weight L --network NO --category security --description "Check pf firewall components" if [ ${SKIPTEST} -eq 0 ]; then PFFOUND=0; PFLOGDFOUND=0