TMA-DOCKER-3.7
Ensure that registry certificate file ownership is set to root:root
높음레벨 1자동docker
설명
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.
점검 방법
감사 방식: 셸 명령
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"- 예상 출력
compliant
조치 방법
조치 방식: 셸 명령
shell
find /etc/docker/certs.d -type f -exec chown root:root {} +속성
- 운영 체제
- 모두
- 태그
- dockerpermissionstls
- 참고 자료
- CIS Docker Benchmark v1.9.0 - 3.7 Ensure that registry certificate file ownership is set to root:root
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target docker