5.24 Ensure that cgroup usage is confirmed

Information

It is possible to attach to a particular cgroup when a container is instantiated. Confirming cgroup usage would ensure that containers are running in defined cgroups.

Rationale:

System administrators typically define cgroups in which containers are supposed to run. If cgroups are not explicitly defined by the system administrator, containers run in the docker cgroup by default.

At run time, it is possible to attach a container to a different cgroup other than the one originally defined. This usage should be monitored and confirmed, as by attaching to a different cgroup, excess permissions and resources might be granted to the container and this can therefore prove to be a security risk.

Solution

You should not use the --cgroup-parent option within the docker run command unless strictly required.

Impact:

None.

Default Value:

By default, containers run under docker cgroup.

See Also

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

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-39, CSCv6|18

Plugin: Unix

Control ID: 83fef5472bea29696a9e88a91ae39284a9333f4a3e72b6de169850f6889a5520