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:
authorToni de la Fuente <toni@blyx.com>2016-03-01 01:27:07 +0300
committerToni de la Fuente <toni@blyx.com>2016-03-01 01:27:07 +0300
commit617ede868655e919581f629c2279b8328b1e1dd7 (patch)
tree63a4a783b4f5c269edf14b651776751537514a5e /include/tests_file_integrity
parentcb73eed69bc9ef75cf1b4eb9bad3a3e3f191cc42 (diff)
Update tests_file_integrity
Diffstat (limited to 'include/tests_file_integrity')
-rw-r--r--include/tests_file_integrity38
1 files changed, 19 insertions, 19 deletions
diff --git a/include/tests_file_integrity b/include/tests_file_integrity
index 7ce0831e..8315fc20 100644
--- a/include/tests_file_integrity
+++ b/include/tests_file_integrity
@@ -246,6 +246,24 @@
Display --indent 6 --text "- Directory/File watches" --result DISABLED --color YELLOW
fi
fi
+
+#################################################################################
+#
+ # Test : FINT-4351
+ # Description : Check if osquery system integrity tool is running
+ Register --test-no FINT-4351 --weight L --network NO --description "osqueryd syscheck daemon running"
+ if [ ${SKIPTEST} -eq 0 ]; then
+ LogText "Test: Checking if osqueryd syscheck daemon is running"
+ IsRunning osqueryd
+ if [ ${RUNNING} -eq 1 ]; then
+ LogText "Result: syscheck (osquery) installed"
+ FILE_INT_TOOL="osquery"
+ FILE_INT_TOOL_FOUND=1
+ Display --indent 4 --text "- osquery (syscheck)" --result FOUND --color GREEN
+ else
+ LogText "Result: syscheck (osquery) not installed"
+ fi
+ fi
#
#################################################################################
#
@@ -266,25 +284,7 @@
fi
fi
#
-#################################################################################
-#
- # Test : FINT-4351
- # Description : Check if osquery system integrity tool is running
- Register --test-no FINT-4351 --weight L --network NO --description "osqueryd syscheck daemon running"
- if [ ${SKIPTEST} -eq 0 ]; then
- LogText "Test: Checking if osqueryd syscheck daemon is running"
- IsRunning osqueryd
- if [ ${RUNNING} -eq 1 ]; then
- LogText "Result: syscheck (osquery) installed"
- FILE_INT_TOOL="osquery"
- FILE_INT_TOOL_FOUND=1
- Display --indent 4 --text "- osquery (syscheck)" --result FOUND --color GREEN
- else
- LogText "Result: syscheck (osquery) not installed"
- fi
- fi
-#
-#################################################################################
+
Report "file_integrity_tool=${FILE_INT_TOOL}"
Report "file_integrity_tool_installed=${FILE_INT_TOOL_FOUND}"