mirror of https://github.com/CISOfy/lynis.git
Boot loader detection for AIX [BOOT-5102]
This commit is contained in:
parent
ea44c2e39d
commit
84c51eead7
|
@ -28,6 +28,29 @@
|
|||
GRUB_VERSION=0
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
# Test : BOOT-5102
|
||||
# Description : Check for AIX boot device
|
||||
# Notes : The AIX bootstrap is called as software ROS. Bootstrap contains IPL (Initial Program loader)
|
||||
Register --test-no BOOT-5102 --os AIX --weight L --network NO --root-only YES --description "Check for AIX boot device"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
logtext "Test: Query bootinfo for AIX boot device"
|
||||
if [ -x /usr/sbin/bootinfo ]; then
|
||||
FIND=`/usr/sbin/bootinfo -b`
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
logtext "Result: found boot device ${FIND}"
|
||||
Display --indent 4 --text "- Checking boot device (bootinfo)" --result FOUND --color GREEN
|
||||
BOOT_LOADER="ROS"
|
||||
BOOT_LOADER_FOUND=1
|
||||
else
|
||||
logtext "Result: no data received from bootinfo, most likely boot device not found"
|
||||
#Display --indent 4 --text "- Checking boot device (bootinfo)" --result "NOT FOUND" --color YELLOW
|
||||
#ReportSuggestion ${TEST_NO} "Only use root (not sudo account) to query properly boot device"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
# Test : BOOT-5121
|
||||
# Description : Check for GRUB boot loader
|
||||
|
|
Loading…
Reference in New Issue