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:
authorMichael Boelen <michael.boelen@cisofy.com>2016-10-16 16:13:04 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-10-16 16:13:04 +0300
commitd0eae6480d95ead463e5e92359df0c1f0caeb2b8 (patch)
tree2955aa059a065b6513790ed260712b395602e0cf /lynis
parentc0e63699e5d6206bc02bee5dd40ed7f813d3fc8f (diff)
Support for Docker container detection
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
#
#################################################################################