5.16 Do not share the host's IPC namespace

Information

https://docs.docker.com/reference/run/#ipc-settings
2.http://man7.org/linux/man-pages/man7/namespaces.7.html

Solution

Do not start a container with '--ipc=host' argument.For example, do not start a container as below-
docker run --interactive --tty --ipc=host centos /bin/bash
Impact-
Shared memory segments are used to accelerate inter-process communication. It is commonly used by high performance applications. If such applications are containerized into multiple containers, you might need to share the IPC namespace of the containers to achieve high performance. In such cases, you should still be sharing container specific IPC namespaces only and not the host IPC namespace. You may share the container's IPC namespace with other container as below-
$>docker run <Run arguments> --ipc=container-$INSTANCE_ID <Container Image Name or ID> <Command>
For example,
docker run --interactive --tty --ipc=container-e3a7a1a97c58 centos /bin/bash
Default Value-
By default, all containers have the IPC namespace enabled and host IPC namespace is not shared with any container.

See Also

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

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-39

Plugin: Unix

Control ID: 8333ef9bbfc8d95e2b950c7019c810c7d2e04892eae3b6cb6a2df2844b789808