From f903b6f07994d57043a63a3fe5bb468d00015511 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 22 Jun 2017 10:15:39 +0200 Subject: [PATCH] Allow tags and system-customer-name to be specified --- default.prf | 14 ++++++++++++++ include/profiles | 10 ++++++++++ 2 files changed, 24 insertions(+) diff --git a/default.prf b/default.prf index 5ed0fbdbd..59338a8e1 100644 --- a/default.prf +++ b/default.prf @@ -141,6 +141,20 @@ plugin=systemd 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 dc509454a..363f3580e 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