Merge pull request #478 from konstruktoid/ISSUE477

fix socket check
This commit is contained in:
Thomas Sjögren 2021-07-12 21:55:31 +00:00 committed by GitHub
commit dfb3a90f67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -600,7 +600,7 @@ check_3_23() {
starttestjson "$id" "$desc"
file="/run/containerd/containerd.sock"
if [ -f "$file" ]; then
if [ -S "$file" ]; then
if [ "$(stat -c %U:%G $file)" = 'root:root' ]; then
pass -s "$check"
logcheckresult "PASS"
@ -625,7 +625,7 @@ check_3_24() {
starttestjson "$id" "$desc"
file="/run/containerd/containerd.sock"
if [ -f "$file" ]; then
if [ -S "$file" ]; then
if [ "$(stat -c %a $file)" -le 660 ]; then
pass -s "$check"
logcheckresult "PASS"