From 22c4e29604e6dd305dec2f7f00c01416e4d88089 Mon Sep 17 00:00:00 2001 From: mboelen Date: Fri, 12 Sep 2014 14:56:50 +0200 Subject: [PATCH] Detect virtual machine status --- lynis | 4 ++++ 1 file changed, 4 insertions(+) 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}"