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: bcdd4ee29b9ffd2474bce6ebe38a37cb09557974edb5cdac9b2b21e645b82550