1. Home
  2. Security Hardening
  3. DISA STIG Docker Enterprise 2.x Linux Unix V2R1
  4. DKER-EE-001960 – Privileged Linux containers must not be used for Docker Enterprise.

DKER-EE-001960 – Privileged Linux containers must not be used for Docker Enterprise.

Details

Using the –privileged flag gives all Linux Kernel Capabilities to the container thus overwriting the –cap-add and –cap-drop flags. Ensure that it is not used. The –privileged flag gives all capabilities to the container, and it also lifts all the limitations enforced by the device cgroup controller. In other words, the container can then do almost everything that the host can do. This flag exists to allow special use-cases, like running Docker within Docker.

Solution

This fix only applies to the use of Docker Engine – Enterprise on a Linux host operating system and should be executed on all nodes in a Docker Enterprise cluster.

Do not run containers with the –privileged flag.

For example, do not start a container as below:

docker run –interactive –tty –privileged centos /bin/bash

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Configuration Management.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles