From d0eae6480d95ead463e5e92359df0c1f0caeb2b8 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sun, 16 Oct 2016 15:13:04 +0200 Subject: Support for Docker container detection --- lynis | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lynis') 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 # ################################################################################# -- cgit v1.2.3