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:
-rw-r--r--include/functions17
-rwxr-xr-xlynis1
2 files changed, 18 insertions, 0 deletions
diff --git a/include/functions b/include/functions
index b96bb070..0c258907 100644
--- a/include/functions
+++ b/include/functions
@@ -98,6 +98,7 @@
# ShowComplianceFinding Display a particular finding regarding compliance or a security standard
# ShowSymlinkPath Show a path behind a symlink
# SkipAtomicTest Test if a subtest needs to be skipped
+# Status Show execution status, such as active test being performed
# StoreNginxSettings Save parsed nginx settings to file
# TestValue Evaluate a value in a string or key
# ViewCategories Show available category of tests
@@ -3384,6 +3385,22 @@
################################################################################
+ # Name : Status()
+ # Description : Reports back the status of tool
+ #
+ # Returns : text to screen
+ # Notes : kill --signal USR1 <PID> or pkill --signal USR1 lynis
+ ################################################################################
+
+ Status() {
+ echo ""
+ echo "Date / time : $(date "+%Y-%m-%d %H:%M:%S")"
+ echo "Active test : ${TEST_NO:-NONE}"
+ echo ""
+ }
+
+
+ ################################################################################
# Name : StoreNginxSettings()
# Description : Store parsed settings from nginx (by ParseNginx)
# Input : multiple options
diff --git a/lynis b/lynis
index 85cf5807..db50a3f3 100755
--- a/lynis
+++ b/lynis
@@ -249,6 +249,7 @@
#################################################################################
#
trap CleanUp INT TERM
+ trap Status USR1
# Use safe umask for the files we create
umask 027