Docker
TMA-DOCKER-3.8
Ensure that registry certificate file permissions are set to 444 or more restrictively
CaoCấp 1Tự độngdocker
Mô tả
Registry certificate files under /etc/docker/certs.d must have mode 444 or more restrictive. The audit lists files under /etc/docker/certs.d with permission bits outside 444; 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 -perm /7333 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 chmod 444 {} +Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- dockerpermissionstls
- Tham chiếu
- CIS Docker Benchmark v1.9.0 - 3.8 Ensure that registry certificate file permissions are set to 444 or more restrictively
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