Update tests_system_integrity (#627)

https://github.com/CISOfy/lynis/issues/626
This commit is contained in:
TheFlipside 2019-01-31 14:28:18 +01:00 committed by Michael Boelen
parent 7d3ba95854
commit 7fded881d8
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@
Register --test-no SINT-7010 --preqs-met ${PREQS_MET} --skip-reason "${SKIPREASON}" --weight H --network NO --category security --description "System Integrity Status"
if [ ${SKIPTEST} -eq 0 ]; then
if ${ROOTDIR}usr/bin/csrutil status | ${GREPBINARY} -sq enabled ; then
Display --indent 2 --text "- System Integrity Protectioni (status)" --result "${STATUS_OK}" --color GREEN
Display --indent 2 --text "- System Integrity Protection (status)" --result "${STATUS_OK}" --color GREEN
Report "system_integrity_tool[]=mac-sip"
LogText "Result: SIP enabled, OK"
AddHP 3 3