TMA-DOCKER-2.10
Enable user namespace support
보통레벨 2자동docker
설명
User namespace remapping maps root inside containers to an unprivileged host UID, limiting the impact of a container breakout. The audit checks that docker info lists name=userns under SecurityOptions.
점검 방법
감사 방식: 셸 명령
shell
o=$(docker info --format '{{range .SecurityOptions}}{{.}} {{end}}') || exit 1; printf '%s\n' "$o" | grep -q 'name=userns' && echo compliant || echo missing- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
Ensure /etc/subuid and /etc/subgid contain a mapping, set "userns-remap": "default" in /etc/docker/daemon.json and restart the Docker daemon (existing images and volumes need to be re-created).
속성
- 운영 체제
- 모두
- 태그
- dockerdaemon
- 참고 자료
- CIS Docker Benchmark v1.9.0 - 2.10 Enable user namespace support
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target docker --level 2