diff options
Diffstat (limited to 'include/tests_databases')
-rw-r--r-- | include/tests_databases | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/include/tests_databases b/include/tests_databases index 98805879..16dae170 100644 --- a/include/tests_databases +++ b/include/tests_databases @@ -5,7 +5,7 @@ # Lynis # ------------------ # -# Copyright 2007-2015, Michael Boelen (michael@rootkit.nl), The Netherlands +# Copyright 2007-2016, Michael Boelen (michael@rootkit.nl), The Netherlands # Web site: http://www.rootkit.nl # # Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are @@ -38,10 +38,10 @@ FIND=`${PSBINARY} ax | egrep "mysqld|mysqld_safe" | grep -v "grep"` if [ "${FIND}" = "" ]; then Display --indent 2 --text "- MySQL process status" --result "NOT FOUND" --color WHITE - logtext "Result: MySQL process not active" + LogText "Result: MySQL process not active" else Display --indent 2 --text "- MySQL process status" --result "FOUND" --color GREEN - logtext "Result: MySQL is active" + LogText "Result: MySQL is active" MYSQL_RUNNING=1 fi fi @@ -70,21 +70,21 @@ if [ ! "${MYSQLCLIENTBINARY}" = "" -a ${MYSQL_RUNNING} -eq 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no DBS-1816 --preqs-met ${PREQS_MET} --weight L --network NO --description "Checking MySQL root password" if [ ${SKIPTEST} -eq 0 ]; then - logtext "Test: Trying to login to local MySQL server without password" + LogText "Test: Trying to login to local MySQL server without password" FIND=`${MYSQLCLIENTBINARY} -u root --password= --silent --batch --execute="" 2> /dev/null; echo $?` if [ "${FIND}" = "0" ]; then - logtext "Result: Login succeeded, no MySQL root password set!" + LogText "Result: Login succeeded, no MySQL root password set!" ReportWarning ${TEST_NO} "H" "No MySQL root password set" ReportSuggestion ${TEST_NO} "Use mysqladmin to set a MySQL root password (mysqladmin -u root -p password MYPASSWORD)" Display --indent 4 --text "- Checking empty MySQL root password" --result WARNING --color RED AddHP 0 5 else - logtext "Result: Login did not succeed, so a MySQL root password is set" + LogText "Result: Login did not succeed, so a MySQL root password is set" Display --indent 4 --text "- Checking MySQL root password" --result OK --color GREEN AddHP 2 2 fi else - logtext "Test skipped, MySQL daemon not running or no MySQL client available" + LogText "Test skipped, MySQL daemon not running or no MySQL client available" fi # ################################################################################# @@ -96,10 +96,10 @@ FIND=`${PSBINARY} ax | grep "postgres:" | grep -v "grep"` if [ "${FIND}" = "" ]; then Display --indent 2 --text "- PostgreSQL processes status" --result "NOT FOUND" --color WHITE - logtext "Result: PostgreSQL process not active" + LogText "Result: PostgreSQL process not active" else Display --indent 2 --text "- PostgreSQL processes status" --result "FOUND" --color GREEN - logtext "Result: PostgreSQL is active" + LogText "Result: PostgreSQL is active" POSTGRESQL_RUNNING=1 fi fi @@ -121,10 +121,10 @@ FIND=`${PSBINARY} ax | egrep "ora_pmon|ora_smon|tnslsnr" | grep -v "grep"` if [ "${FIND}" = "" ]; then Display --indent 2 --text "- Oracle processes status" --result "NOT FOUND" --color WHITE - logtext "Result: Oracle process(es) not active" + LogText "Result: Oracle process(es) not active" else Display --indent 2 --text "- Oracle processes status" --result "FOUND" --color GREEN - logtext "Result: Oracle is active" + LogText "Result: Oracle is active" ORACLE_RUNNING=1 fi fi @@ -142,13 +142,13 @@ # ################################################################################# # -report "mysql_running=${MYSQL_RUNNING}" -report "oracle_running=${ORACLE_RUNNING}" -report "postgresql_running=${POSTGRESQL_RUNNING}" +Report "mysql_running=${MYSQL_RUNNING}" +Report "oracle_running=${ORACLE_RUNNING}" +Report "postgresql_running=${POSTGRESQL_RUNNING}" wait_for_keypress # #================================================================================ -# Lynis - Copyright 2007-2015, Michael Boelen - www.rootkit.nl - The Netherlands +# Lynis - Copyright 2007-2016, Michael Boelen - www.rootkit.nl - The Netherlands |