TMAegis
docker için daha fazla kural

TMA-DOCKER-3.7

Ensure that registry certificate file ownership is set to root:root

YüksekDüzey 1Otomatikdocker

Açıklama

Registry certificate files under /etc/docker/certs.d must be owned by root:root so that they cannot be replaced by unprivileged users. The audit lists files under /etc/docker/certs.d not owned by root:root; 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 \( ! -user root -o ! -group root \) 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 chown root:root {} +

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
dockerpermissionstls
Referans
CIS Docker Benchmark v1.9.0 - 3.7 Ensure that registry certificate file ownership is set to root:root

Bu ana makineyi denetle

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

shell
tmaegis scan --target docker