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>2017-06-22 11:15:39 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-06-22 11:15:39 +0300
commitf903b6f07994d57043a63a3fe5bb468d00015511 (patch)
tree2c4b0be1c7d37afdd0997a8ed47bdf6455459827
parentf4b6d8d401dd68e5abbc03ea5f56c275a5f6f08b (diff)
Allow tags and system-customer-name to be specified
-rw-r--r--default.prf14
-rw-r--r--include/profiles10
2 files changed, 24 insertions, 0 deletions
diff --git a/default.prf b/default.prf
index 5ed0fbdb..59338a8e 100644
--- a/default.prf
+++ b/default.prf
@@ -143,6 +143,20 @@ plugin=users
#################################################################################
#
+# Lynis Enterprise options
+#
+#################################################################################
+
+# Provide the name of the customer/client
+system-customer-name=
+
+# Provide tags (tags=db,production,ssn-1304)
+tags=
+
+
+
+#################################################################################
+#
# Configuration (Old Style) - will be replaced in phases
#
#################################################################################
diff --git a/include/profiles b/include/profiles
index dc509454..363f3580 100644
--- a/include/profiles
+++ b/include/profiles
@@ -315,6 +315,16 @@
FIND=$(echo "${VALUE}" | egrep "^(1|true|yes)") && SET_STRICT=1
;;
+ # The name of the customer/client that uses this system
+ system-customer-name)
+ if [ ! -z "${VALUE}" ]; then Report "system-customer-name=${VALUE}"; fi
+ ;;
+
+ # Tags (tags=db,production,ssn-1304)
+ tags)
+ if [ ! -z "${VALUE}" ]; then Report "tags=${VALUE}"; fi
+ ;;
+
# Define what kind of scan we are performing
test_scan_mode | test-scan-mode)
if [ "${VALUE}" = "light" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="NO"; SCAN_TEST_HEAVY="NO"; fi