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:
authorMichael Boelen <michael.boelen@cisofy.com>2016-10-16 16:51:30 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-10-16 16:51:30 +0300
commit404bd9ad4cffd5767543cb53e39dee1b8218901a (patch)
treeb05b9f2d16e359458015d4396ee1b4026e410f12
parent27054e2f2e69b1dd5a042702f856ae92654220ae (diff)
Correct path to cgroup file
-rw-r--r--include/functions6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions b/include/functions
index 922bf8a5..3096ae76 100644
--- a/include/functions
+++ b/include/functions
@@ -1085,10 +1085,10 @@
IsContainer() {
FOUND=0
- if [ -e /proc/1/cgroups ]; then
- FIND=$(cat /proc/1/cgroups | grep -i docker)
+ if [ -e /proc/1/cgroup ]; then
+ FIND=$(cat /proc/1/cgroup | grep -i docker)
if [ $? -eq 0 ]; then
- LogText "Result: found Docker in cgroups, so we are running in Docker container"
+ LogText "Result: found Docker in control groups (/proc/1/cgroup), so we are running in Docker container"
CONTAINER_TYPE="Docker"; FOUND=1
EXITCODE=0
fi