mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
fix directory not found for 1.9
This commit is contained in:
parent
23a74b5bd0
commit
d603f806d1
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ fi
|
||||||
# 1.9
|
# 1.9
|
||||||
check_1_9="1.9 - Audit Docker files and directories - /var/lib/docker"
|
check_1_9="1.9 - Audit Docker files and directories - /var/lib/docker"
|
||||||
directory="/var/lib/docker"
|
directory="/var/lib/docker"
|
||||||
if [ -d "$file" ]; then
|
if [ -d "$directory" ]; then
|
||||||
command -v auditctl >/dev/null 2>&1
|
command -v auditctl >/dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
auditctl -l | grep $directory >/dev/null 2>&1
|
auditctl -l | grep $directory >/dev/null 2>&1
|
||||||
|
|
Loading…
Reference in a new issue