mirror of https://github.com/CISOfy/lynis.git
Reversed file check on /dev/pf
This commit is contained in:
parent
81024635aa
commit
c4b6aab8c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue