mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
commit
dfb3a90f67
1 changed files with 2 additions and 2 deletions
|
@ -600,7 +600,7 @@ check_3_23() {
|
||||||
starttestjson "$id" "$desc"
|
starttestjson "$id" "$desc"
|
||||||
|
|
||||||
file="/run/containerd/containerd.sock"
|
file="/run/containerd/containerd.sock"
|
||||||
if [ -f "$file" ]; then
|
if [ -S "$file" ]; then
|
||||||
if [ "$(stat -c %U:%G $file)" = 'root:root' ]; then
|
if [ "$(stat -c %U:%G $file)" = 'root:root' ]; then
|
||||||
pass -s "$check"
|
pass -s "$check"
|
||||||
logcheckresult "PASS"
|
logcheckresult "PASS"
|
||||||
|
@ -625,7 +625,7 @@ check_3_24() {
|
||||||
starttestjson "$id" "$desc"
|
starttestjson "$id" "$desc"
|
||||||
|
|
||||||
file="/run/containerd/containerd.sock"
|
file="/run/containerd/containerd.sock"
|
||||||
if [ -f "$file" ]; then
|
if [ -S "$file" ]; then
|
||||||
if [ "$(stat -c %a $file)" -le 660 ]; then
|
if [ "$(stat -c %a $file)" -le 660 ]; then
|
||||||
pass -s "$check"
|
pass -s "$check"
|
||||||
logcheckresult "PASS"
|
logcheckresult "PASS"
|
||||||
|
|
Loading…
Reference in a new issue