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:
authormboelen <michael@cisofy.com>2014-11-29 18:25:18 +0300
committermboelen <michael@cisofy.com>2014-11-29 18:25:18 +0300
commit98abf325e44318f21cbeab0695e3d7c728b00dd1 (patch)
tree979d2655a660370cf053a6d74d9c08ae0ac2b1d2 /include
parentb25fa10b1d30b8c2e25706b0d909bac7a0749949 (diff)
Cleaning up code a little bit
Diffstat (limited to 'include')
-rw-r--r--include/profiles29
1 files changed, 6 insertions, 23 deletions
diff --git a/include/profiles b/include/profiles
index db20d4fa..8ec98326 100644
--- a/include/profiles
+++ b/include/profiles
@@ -101,6 +101,7 @@
# Profile name
profile_name)
# YYY dummy
+ PROFILE_NAME="${VALUE}"
;;
# Inline tips about tool
@@ -121,9 +122,9 @@
# Define what kind of scan we are performing
test_scan_mode)
- if [ "${VALUE}" = "light" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="NO"; SCAN_TEST_HEAVY="NO"; fi
- if [ "${VALUE}" = "normal" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="YES"; SCAN_TEST_HEAVY="NO"; fi
- if [ "${VALUE}" = "full" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="YES"; SCAN_TEST_HEAVY="YES"; fi
+ if [ "${VALUE}" = "light" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="NO"; SCAN_TEST_HEAVY="NO"; fi
+ if [ "${VALUE}" = "normal" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="YES"; SCAN_TEST_HEAVY="NO"; fi
+ if [ "${VALUE}" = "full" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="YES"; SCAN_TEST_HEAVY="YES"; fi
;;
# Catch all bad options and bail out
@@ -131,8 +132,7 @@
logtext "Unknown option ${OPTION} (with value: ${VALUE})"
echo "Fatal error: found errors in profile"
echo "Unknown option '${OPTION}' found (with value: ${VALUE})"
- RemovePIDFile
- exit 1
+ ExitFatal
;;
esac
@@ -148,23 +148,6 @@
#
#################################################################################
#
-# Plugins
-#
-#################################################################################
-#
- #FIND=`cat ${PROFILE} | grep '^plugin_enable=' | sed 's/ /!space!/g'`
- #for I in ${FIND}; do
- # PLUGIN=`echo ${I} | cut -d '=' -f2`
- # if [ -f "${PLUGINDIR}/${PLUGIN}" ]; then
- # logtext "Found plugin: ${PLUGIN}"
- # # XXX - enable plugin
- # else
- # logtext "Couldn't find plugin: ${PLUGIN} (${PLUGINDIR}/${PLUGIN})"
- # fi
- #done
-#
-#################################################################################
-#
# Set default values (only if not configured in profile)
if [ "${MACHINE_ROLE}" = "" ]; then
@@ -184,4 +167,4 @@
logtextbreak
#================================================================================
-# Lynis - Copyright 2007-2014, Michael Boelen - cisofy.com - The Netherlands
+# Lynis - Copyright 2007-2014, Michael Boelen - CISOfy, https://cisofy.com