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/bashImpact-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/bashDefault 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/517

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-39

Plugin: Unix

Control ID: ff5dc222a64e54766040ff3264952157ec85c76e8f2fa738ef9f83619bc2637f