mirror of https://github.com/CISOfy/lynis.git
Wrap ipfw test in SKIPTEST block.
This commit is contained in:
parent
ded7e95a14
commit
a0b20fcfe3
|
@ -276,6 +276,7 @@
|
|||
# Test : FIRE-4530
|
||||
# Description : Check ipfw (FreeBSD)
|
||||
Register --test-no FIRE-4530 --os FreeBSD --weight L --network NO --description "Check ipfw status"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
if [ ! "${SYSCTLBINARY}" = "" ]; then
|
||||
# For now, only check for IPv4.
|
||||
FIND=`${SYSCTLBINARY} net.inet.ip.fw.enable | awk '{ print $2 }'`
|
||||
|
@ -300,6 +301,7 @@
|
|||
Display --indent 2 --text "- Checking ipfw" --result SKIPPED --color YELLOW
|
||||
ReportException "${TEST_NO}:4" "No IPFW test available (sysctl missing)"
|
||||
fi
|
||||
fi
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue