TMA-DOCKER-3.7
Ensure that registry certificate file ownership is set to root:root
ÉlevéeNiveau 1Automatiséedocker
Description
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.
Méthode de vérification
Méthode d'audit: Commande shell
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"- Sortie attendue
compliant
Méthode de correction
Méthode de correction: Commande shell
shell
find /etc/docker/certs.d -type f -exec chown root:root {} +Propriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- dockerpermissionstls
- Référence
- CIS Docker Benchmark v1.9.0 - 3.7 Ensure that registry certificate file ownership is set to root:root
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
shell
tmaegis scan --target docker