mirror of https://github.com/CISOfy/lynis.git
Test for longer status string
This commit is contained in:
parent
2b101e75e8
commit
d73e79193a
|
@ -305,7 +305,7 @@
|
|||
if [ -x /usr/libexec/ApplicationFirewall/socketfilterfw ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
||||
Register --test-no FIRE-4532 --weight L --os "MacOS" --preqs-met ${PREQS_MET} --network NO --description "Check Mac OS X application firewall"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
FIND=`/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate 2> /dev/null | grep "Enabled"`
|
||||
FIND=`/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate 2> /dev/null | grep "Firewall is enabled"`
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
Display --indent 2 --text "- Checking Mac OS X: Application Firewall" --result ENABLED --color GREEN
|
||||
AddHP 3 3
|
||||
|
|
Loading…
Reference in New Issue