diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-10-16 16:13:04 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-10-16 16:13:04 +0300 |
commit | d0eae6480d95ead463e5e92359df0c1f0caeb2b8 (patch) | |
tree | 2955aa059a065b6513790ed260712b395602e0cf /lynis | |
parent | c0e63699e5d6206bc02bee5dd40ed7f813d3fc8f (diff) |
Support for Docker container detection
Diffstat (limited to 'lynis')
-rwxr-xr-x | lynis | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 # ################################################################################# |