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-04 02:32:59 +0300
committermboelen <michael@cisofy.com>2014-11-04 02:32:59 +0300
commitb81d3cc3e02c326bf6ed5f1e22ad8152cbc134dd (patch)
tree0f0f6ab2981ea30b124a0c54e715e9aadc3a596a
parent28b31b95c801b3e1d3a1986b7135608921804d4d (diff)
Do not test virtual machine status too early
-rwxr-xr-xlynis10
1 files changed, 6 insertions, 4 deletions
diff --git a/lynis b/lynis
index 16fb09ba..c5ceef2f 100755
--- a/lynis
+++ b/lynis
@@ -468,8 +468,6 @@
report "os_version=${OS_VERSION}"
if [ "${OS}" = "Linux" ]; then report "linux_version=${LINUX_VERSION}"; fi
report "hostname=${HOSTNAME}"
- # Check if this system is a virtual machine
- IsVirtualMachine
#
#################################################################################
#
@@ -487,7 +485,6 @@
if [ ! "${OS_MODE}" = "" ]; then echo " Operating system mode: ${OS_MODE}"; fi
echo " Kernel version: ${OS_KERNELVERSION}"
echo " Hardware platform: ${HARDWARE}"
- echo " Virtual machine: ${VMFULLTYPE}"
echo " Hostname: ${HOSTNAME}"
echo " Auditor: ${AUDITORNAME}"
echo " Profile: ${PROFILE}"
@@ -509,7 +506,6 @@
logtext "Kernel version (full): ${OS_KERNELVERSION_FULL}"
fi
logtext "Hardware platform: ${HARDWARE}"
- logtext "Virtual machine: ${VMFULLTYPE}"
logtext "Hostname: ${HOSTNAME}"
logtext "Auditor: ${AUDITORNAME}"
logtext "Profile: ${PROFILE}"
@@ -614,6 +610,12 @@
#
#################################################################################
#
+ # Check if this is a virtual machine (after the appropriate binaries are found)
+ IsVirtualMachine
+#
+#################################################################################
+#
+
logtextbreak
InsertPluginSection "Plugins (phase 1)"
logtext "Searching plugins..."