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:
authorMichael Boelen <michael.boelen@cisofy.com>2016-08-12 10:53:28 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-08-12 10:53:28 +0300
commit1a6da634271f7d1a183def15c7240ae4af54259b (patch)
treee650454d051e022a46cd435f11bfca200d3e0241 /include/tests_databases
parentc761fe8106557525e0e5056c9391cdd5854785f2 (diff)
Added DBS-1886 to find renamed CONFIG command in Redis
Diffstat (limited to 'include/tests_databases')
-rw-r--r--include/tests_databases25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/tests_databases b/include/tests_databases
index 733679b5..c32bf0a0 100644
--- a/include/tests_databases
+++ b/include/tests_databases
@@ -230,6 +230,31 @@
#
#################################################################################
#
+ # Test : DBS-1886
+ # Description : Determine Redis configuration option: rename-command CONFIG
+ if [ ${REDIS_RUNNING} -eq 1 -a ${REDIS_CONFIGURATION_FOUND} -eq 1 ]; then PREQS_METS="YES"; else PREQS_MET="NO"; fi
+ Register --test-no DBS-1886 --weight L --network NO --preqs-met "${PREQS_MET}" --category security --description "Redis: rename-command CONFIG used"
+ if [ ${SKIPTEST} -eq 0 ]; then
+ if FileIsReadable ${REDIS_CONFIGURATION}; then
+ if SearchItem "^rename-command CONFIG" "${REDIS_CONFIGURATION}" "--sensitive"; then
+ LogText "Result: found 'rename-command CONFIG' configured"
+ AddHP 3 3
+ Display --indent 4 --text "- Redis (rename of CONFIG command)" --result "${STATUS_FOUND}" --color GREEN
+ Report "redis_rename_command_config=1"
+ else
+ AddHP 0 3
+ Display --indent 4 --text "- Redis (rename of CONFIG command)" --result "${STATUS_NOT_FOUND}" --color YELLOW
+ ReportSuggestion "${TEST_NO}" "Use the 'rename-command CONFIG' setting for Redis" "${REDIS_CONFIGURATION}" "solution:configure 'requirepass' setting"
+ Report "redis_rename_command_config=0"
+ fi
+ else
+ LogText "Result: test skipped, as we can't read configuration file"
+ fi
+ fi
+#
+#################################################################################
+#
+
if [ ${DATABASE_ENGINE_RUNNING} -eq 0 ]; then
Display --indent 4 --text "No database engines found"
fi