mirror of https://github.com/CISOfy/lynis.git
Detect virtual machine status
This commit is contained in:
parent
ef3f7f1ebf
commit
22c4e29604
4
lynis
4
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}"
|
||||
|
|
Loading…
Reference in New Issue