mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-23 13:54:35 +02:00
Add new test BOOT-5106 to check for boot.efi on Mac OS X
This commit is contained in:
parent
f8940e20b2
commit
2be968eb2c
@ -117,6 +117,20 @@
|
|||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
#
|
||||||
|
# Test : BOOT-5106
|
||||||
|
# Description : Check if boot.efi is found on Mac OS X
|
||||||
|
Register --test-no BOOT-5106 --os "MacOS" --weight L --network NO --root-only YES --description "Check EFI boot file on Mac OS X"
|
||||||
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
|
FileExists /System/Library/CoreServices/boot.efi
|
||||||
|
if [ ${FILE_FOUND} -eq 1 ]; then
|
||||||
|
logtext "Result: found Mac OS X boot.efi file"
|
||||||
|
BOOT_LOADER="MacOS-boot-EFI"
|
||||||
|
BOOT_LOADER_FOUND=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
#################################################################################
|
||||||
#
|
#
|
||||||
# Test : BOOT-5116
|
# Test : BOOT-5116
|
||||||
# Description : Check if system is booted in UEFI mode
|
# Description : Check if system is booted in UEFI mode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user