mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
fix /etc/sysconfig/docker
closes #397 Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
6d73492aab
commit
d680213a7b
1 changed files with 2 additions and 2 deletions
|
@ -610,12 +610,12 @@ check_3_20() {
|
|||
# 3.21
|
||||
check_3_21() {
|
||||
id_3_21="3.21"
|
||||
desc_3_21="Ensure that /etc/default/docker file permissions are set to 644 or more restrictive"
|
||||
desc_3_21="Ensure that /etc/sysconfig/docker file permissions are set to 644 or more restrictive"
|
||||
check_3_21="$id_3_21 - $desc_3_21"
|
||||
starttestjson "$id_3_21" "$desc_3_21"
|
||||
|
||||
totalChecks=$((totalChecks + 1))
|
||||
file="/etc/default/docker"
|
||||
file="/etc/sysconfig/docker"
|
||||
if [ -f "$file" ]; then
|
||||
if [ "$(stat -c %a $file)" -eq 644 ] || [ "$(stat -c %a $file)" -eq 600 ]; then
|
||||
pass "$check_3_21"
|
||||
|
|
Loading…
Reference in a new issue