TMAegis
Aturan lainnya untuk docker

TMA-DOCKER-3.7

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

TinggiLevel 1Otomatisdocker

Deskripsi

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.

Cara pemeriksaan

Metode audit: Perintah 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"
Output yang diharapkan
compliant

Cara perbaikan

Metode perbaikan: Perintah shell

shell
find /etc/docker/certs.d -type f -exec chown root:root {} +

Properti

Sistem operasi
Apa saja
Tag
dockerpermissionstls
Referensi
CIS Docker Benchmark v1.9.0 - 3.7 Ensure that registry certificate file ownership is set to root:root

Periksa host ini

Jalankan ini pada mesin yang diizinkan untuk Anda audit. Pemindaian bersifat hanya baca.

shell
tmaegis scan --target docker