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>2015-05-27 13:36:34 +0300
committermboelen <michael@cisofy.com>2015-05-27 13:36:34 +0300
commit785ac74f91d6d2f0c6dd8728a28555f897f50333 (patch)
tree392799f13c7a7da9782be2f2db3e2cbb9942a0e9
parent5f3c47df68eda0fe6808efc65cff2742d62f04df (diff)
Moved tests to new container group
-rw-r--r--include/tests_virtualization47
1 files changed, 2 insertions, 45 deletions
diff --git a/include/tests_virtualization b/include/tests_virtualization
index c9100bf9..36a3a456 100644
--- a/include/tests_virtualization
+++ b/include/tests_virtualization
@@ -5,8 +5,8 @@
# Lynis
# ------------------
#
-# Copyright 2007-2015, Michael Boelen (michael@rootkit.nl), The Netherlands
-# Web site: http://www.rootkit.nl
+# Copyright 2007-2015, Michael Boelen (michael.boelen@cisofy.com)
+# Web site: https://cisofy.com
#
# Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
# welcome to redistribute it under the terms of the GNU General Public License.
@@ -22,49 +22,6 @@
#
#################################################################################
#
- # Test : VIRT-1902
- # Description : Query running Solaris zones
- if [ -x /usr/sbin/zoneadm ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
- Register --test-no VIRT-1902 --os Solaris --weight L --network NO --description "Query running Solaris zones"
- if [ ${SKIPTEST} -eq 0 ]; then
- logtext "Test: query zoneadm to list all running zones"
- FIND=`/usr/sbin/zoneadm list -p | awk -F: '{ if ($2!="global") print $0 }'`
- if [ ! "${FIND}" = "" ]; then
- N=0
- for I in ${FIND}; do
- N=`expr ${N} + 1`
- ZONEID=`echo ${I} | cut -d ':' -f1`
- ZONENAME=`echo ${I} | cut -d ':' -f2`
- logtext "Result: found zone ${ZONENAME} (running)"
- report "solaris_running_zone[]=${ZONENAME} [id:${ZONEID}]"
- done
- logtext "Result: total of ${N} running zones"
- Display --indent 2 --text "- Checking Solaris Zones" --result "FOUND ${N} zones" --color GREEN
- else
- logtext "Result: no running zones found"
- Display --indent 2 --text "- Checking Solaris Zones" --result NONE --color WHITE
- fi
- fi
-#
-#################################################################################
-#
- # Test : VIRT-1906
- # Description : Query running Xen zones
- #if [ -x /usr/bin/xm ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
- #Register --test-no VIRT-1906 --weight L --network NO --description "Query Xen guests"
- #if [ ${SKIPTEST} -eq 0 ]; then
- # Show Xen guests
- #FIND=`xm list | awk '$1 != "Name|Domain-0" {print $1","$2}'`
- #for I in ${FIND}; do
- #XENGUESTNAME=`echo ${I} | cut -d ':' -f1`
- #XENGUESTID=`echo ${I} | cut -d ':' -f2`
- #logtext "Result: found Xen guest ${XENGUESTNAME} (ID: ${XENGUESTID})"
- #done
- #fi
-#
-#################################################################################
-#
-
# # Test : VIRT-1920
# # Description : Checking VMware
# Register --test-no VIRT-1920 --weight L --network NO --description "Checking VMware guest status"