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:
Diffstat (limited to 'lynis')
-rwxr-xr-xlynis8
1 files changed, 8 insertions, 0 deletions
diff --git a/lynis b/lynis
index 0aa0fff1..3a0954ec 100755
--- a/lynis
+++ b/lynis
@@ -750,6 +750,14 @@ ${NORMAL}
#
# Use hardware detection capabilities
IsVirtualMachine
+ if IsContainer; then
+ LogText "Result: ${PROGRAM_NAME} is running in container (${CONTAINER_TYPE})"
+ Report "container=1"
+ Report "container_type=${CONTAINER_TYPE}"
+ else
+ LogText "Result: ${PROGRAM_NAME} is not running in container"
+ Report "container=0"
+ fi
IsNotebook
#
#################################################################################