SV-235784r627479_rule
V-235784
SRG-APP-000039
DKER-EE-001240
CAT II
10
This fix only applies to the use of Docker Engine - Enterprise on a Linux host operating system.
Do not start a container with --pid=host argument.
For example, do not start a container as below:
docker run --interactive --tty --pid=host centos /bin/bash
This check only applies to the use of Docker Engine - Enterprise on a Linux host operating system.
Ensure the host's process namespace is not shared.
via CLI:
Linux: As a Docker EE Admin, execute the following command using a UCP client bundle:
docker ps --all | grep -iv "ucp\|kube\|dtr" | awk '{print $1}' | xargs docker inspect --format '{{ .Id }}: PidMode={{ .HostConfig.PidMode }}'
If PidMode = "host", it means the host PID namespace is shared with the container and this is a finding.
V-235784
False
DKER-EE-001240
This check only applies to the use of Docker Engine - Enterprise on a Linux host operating system.
Ensure the host's process namespace is not shared.
via CLI:
Linux: As a Docker EE Admin, execute the following command using a UCP client bundle:
docker ps --all | grep -iv "ucp\|kube\|dtr" | awk '{print $1}' | xargs docker inspect --format '{{ .Id }}: PidMode={{ .HostConfig.PidMode }}'
If PidMode = "host", it means the host PID namespace is shared with the container and this is a finding.
M
5281