TMAegis
docker için daha fazla kural

TMA-DOCKER-3.8

Ensure that registry certificate file permissions are set to 444 or more restrictively

YüksekDüzey 1Otomatikdocker

Açıklama

Registry certificate files under /etc/docker/certs.d must have mode 444 or more restrictive. The audit lists files under /etc/docker/certs.d with permission bits outside 444; not applicable when /etc/docker/certs.d does not exist.

Nasıl denetlenir

Denetim yöntemi: Kabuk komutu

shell
out=$(find /etc/docker/certs.d -type f -perm /7333 2>/dev/null) || exit 1; [ -z "$out" ] && echo compliant || printf '%s\n' "$out"
Beklenen çıktı
compliant

Nasıl düzeltilir

Düzeltme yöntemi: Kabuk komutu

shell
find /etc/docker/certs.d -type f -exec chmod 444 {} +

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
dockerpermissionstls
Referans
CIS Docker Benchmark v1.9.0 - 3.8 Ensure that registry certificate file permissions are set to 444 or more restrictively

Bu ana makineyi denetle

Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.

shell
tmaegis scan --target docker