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
path: root/lynis
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2014-09-12 16:56:50 +0400
committermboelen <michael@cisofy.com>2014-09-12 16:56:50 +0400
commit22c4e29604e6dd305dec2f7f00c01416e4d88089 (patch)
tree532773013cb56c500e9db2649ce8baa833cce82f /lynis
parentef3f7f1ebf9bfa0edf66674550f0266611d3ae2f (diff)
Detect virtual machine status
Diffstat (limited to 'lynis')
-rwxr-xr-xlynis4
1 files changed, 4 insertions, 0 deletions
diff --git a/lynis b/lynis
index 67607c41..a006bfff 100755
--- a/lynis
+++ b/lynis
@@ -467,6 +467,8 @@
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
#
#################################################################################
#
@@ -484,6 +486,7 @@
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}"
@@ -502,6 +505,7 @@
if [ ! "${OS_MODE}" = "" ]; then logtext "Operating system mode: ${OS_MODE}"; fi
logtext "Kernel version: ${OS_KERNELVERSION}"
logtext "Hardware platform: ${HARDWARE}"
+ logtext "Virtual machine: ${VMFULLTYPE}"
logtext "Hostname: ${HOSTNAME}"
logtext "Auditor: ${AUDITORNAME}"
logtext "Profile: ${PROFILE}"