5.30 Ensure the host's user namespaces is not shared

Information

Do not share the host's user namespaces with the containers.
Rationale:
User namespaces ensure that a root process inside the container will be mapped to a non-root process outside the container. Sharing the user namespaces of the host with the container thus does not isolate users on the host with users on the containers.

Solution

Do not share user namespaces between host and containers.
For example, do not run a container as below:
docker run --rm -it --userns=host ubuntu bash
Impact:
None
Default Value:
By default, the host user namespace is shared with the containers until user namespace support is enabled.

See Also

https://workbench.cisecurity.org/files/1726

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-7a., CSCv6|12

Plugin: Unix

Control ID: 02e70e59fce40926587d5825973a8448364973acf85e734845966f171bd30778