mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-24 14:24:50 +02:00
Allow OpenBSD boot loader test for all platforms
This commit is contained in:
parent
525c430d84
commit
dcef76d250
@ -261,7 +261,7 @@
|
|||||||
# Test : BOOT-5159
|
# Test : BOOT-5159
|
||||||
# Description : Check for OpenBSD boot loader
|
# Description : Check for OpenBSD boot loader
|
||||||
# More info : Only OpenBSD
|
# 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
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
FOUND=0
|
FOUND=0
|
||||||
# Boot files
|
# 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."
|
ReportSuggestion ${TEST_NO} "Add 'boot' to the /etc/boot.conf file to disable the default 5 seconds waiting time."
|
||||||
fi
|
fi
|
||||||
if [ ${FOUND} -eq 1 ]; then
|
if [ ${FOUND} -eq 1 ]; then
|
||||||
|
logtext "Result: found OpenBSD boot loader"
|
||||||
BOOT_LOADER="OpenBSD"
|
BOOT_LOADER="OpenBSD"
|
||||||
BOOT_LOADER_FOUND=1
|
BOOT_LOADER_FOUND=1
|
||||||
fi
|
fi
|
||||||
@ -566,6 +567,7 @@
|
|||||||
ReportException "${TEST_NO}:1" "No uptime test available for this operating system (/proc/uptime missing)"
|
ReportException "${TEST_NO}:1" "No uptime test available for this operating system (/proc/uptime missing)"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
MacOS)
|
MacOS)
|
||||||
if [ ! "${SYSCTLBINARY}" = "" ]; then
|
if [ ! "${SYSCTLBINARY}" = "" ]; then
|
||||||
FIND=`${SYSCTLBINARY} kern.boottime | awk '{ print $5 }' | sed -e 's/,//'`
|
FIND=`${SYSCTLBINARY} kern.boottime | awk '{ print $5 }' | sed -e 's/,//'`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user