5.25 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.

Impact:

None.

Solution

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

Default Value:

By default, containers run under docker cgroup.

See Also

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

Item Details

Category: ACCESS CONTROL, MEDIA PROTECTION

References: 800-53|AC-3, 800-53|AC-5, 800-53|AC-6, 800-53|MP-2, CSCv7|14.6

Plugin: Unix

Control ID: 85dca8d5fc9b5a78917e0a108ac3bbdece316db8b9656c1c7a9f4cb789b261d0