TMA-DOCKER-3.7
Ensure that registry certificate file ownership is set to root:root
CaoCấp 1Tự độngdocker
Mô tả
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.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh 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"- Đầu ra mong đợi
compliant
Cách khắc phục
Phương pháp khắc phục: Lệnh shell
shell
find /etc/docker/certs.d -type f -exec chown root:root {} +Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- dockerpermissionstls
- Tham chiếu
- CIS Docker Benchmark v1.9.0 - 3.7 Ensure that registry certificate file ownership is set to root:root
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
shell
tmaegis scan --target docker