Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2014-10-19 14:25:40 +0400
committermboelen <michael@cisofy.com>2014-10-19 14:25:40 +0400
commit84c51eead7c979c303a5f7a719e2b5f546bc24be (patch)
treef98d872d79162081a63bf0ca513240ae3f86802d /include/tests_boot_services
parentea44c2e39dcd3a05cb0ec9c9779051b1a859909a (diff)
Boot loader detection for AIX [BOOT-5102]
Diffstat (limited to 'include/tests_boot_services')
-rw-r--r--include/tests_boot_services23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services
index 33083be5..1dc364dc 100644
--- a/include/tests_boot_services
+++ b/include/tests_boot_services
@@ -29,6 +29,29 @@
#
#################################################################################
#
+ # 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
Register --test-no BOOT-5121 --weight L --network NO --description "Check for GRUB boot loader presence"