mirror of https://github.com/CISOfy/lynis.git
Added CRYP-7932 to determine if the system has enabled macOS FileVault.
This commit is contained in:
parent
d733780777
commit
0b7e8c3bfe
|
@ -217,6 +217,27 @@
|
|||
fi
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
# Test : CRYP-7932
|
||||
# Description : Determine if system has enabled macOS FileVault encryption
|
||||
Register --test-no CRYP-7932 --os macOS --weight L --network NO --category crypto --description "Determine if system has enabled macOS FileVault encryption"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
filevault_status=$(fdesetup status)
|
||||
|
||||
case "$filevault_status" in
|
||||
*"FileVault is On."*)
|
||||
LogText "Result: FileVault is enabled."
|
||||
Display --indent 2 --text "- FileVault is enabled." --result "${STATUS_OK}" --color GREEN
|
||||
Report "encryption[]=filevault"
|
||||
;;
|
||||
*)
|
||||
LogText "Result: FileVault is not enabled."
|
||||
Display --indent 2 --text "- FileVault is not enabled." --result "${STATUS_WARNING}" --color RED
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
# Test : CRYP-8002
|
||||
# Description : Gather available kernel entropy
|
||||
|
|
Loading…
Reference in New Issue