TMA-DOCKER-3.7
Ensure that registry certificate file ownership is set to root:root
VisokaNivo 1Automatskadocker
Opis
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.
Kako se proverava
Metod provere: Komanda ljuske
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"- Očekivani izlaz
compliant
Kako se ispravlja
Metod ispravke: Komanda ljuske
shell
find /etc/docker/certs.d -type f -exec chown root:root {} +Svojstva
- Operativni sistemi
- Bilo koji
- Oznake
- dockerpermissionstls
- Referenca
- CIS Docker Benchmark v1.9.0 - 3.7 Ensure that registry certificate file ownership is set to root:root
Proverite ovaj računar
Pokrenite ovo na računaru za koji imate dozvolu za proveru. Skeniranje radi u režimu samo za čitanje.
shell
tmaegis scan --target docker