mirror of https://github.com/CISOfy/lynis.git
Allow OpenBSD boot loader test for all platforms
This commit is contained in:
parent
525c430d84
commit
dcef76d250
|
@ -261,7 +261,7 @@
|
|||
# Test : BOOT-5159
|
||||
# Description : Check for OpenBSD boot loader
|
||||
# More info : Only OpenBSD
|
||||
Register --test-no BOOT-5159 --os OpenBSD --platform i386 --weight L --network NO --description "Check for OpenBSD boot loader presence"
|
||||
Register --test-no BOOT-5159 --os OpenBSD --weight L --network NO --description "Check for OpenBSD boot loader presence"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
FOUND=0
|
||||
# Boot files
|
||||
|
@ -290,6 +290,7 @@
|
|||
ReportSuggestion ${TEST_NO} "Add 'boot' to the /etc/boot.conf file to disable the default 5 seconds waiting time."
|
||||
fi
|
||||
if [ ${FOUND} -eq 1 ]; then
|
||||
logtext "Result: found OpenBSD boot loader"
|
||||
BOOT_LOADER="OpenBSD"
|
||||
BOOT_LOADER_FOUND=1
|
||||
fi
|
||||
|
@ -566,6 +567,7 @@
|
|||
ReportException "${TEST_NO}:1" "No uptime test available for this operating system (/proc/uptime missing)"
|
||||
fi
|
||||
;;
|
||||
|
||||
MacOS)
|
||||
if [ ! "${SYSCTLBINARY}" = "" ]; then
|
||||
FIND=`${SYSCTLBINARY} kern.boottime | awk '{ print $5 }' | sed -e 's/,//'`
|
||||
|
|
Loading…
Reference in New Issue