5.24 Confirm cgroup usage

Information

It is possible to attach to a particular cgroup on container run. Confirming cgroup usage would ensure that containers are running under defined cgroups.

Rationale:

System administrators typically define cgroupsunder which containers are supposed to run. Even if cgroups are not explicitly defined by the system administrators, containers run under docker cgroup by default.

At run-time, it is possible to attach to a different cgroup other than the one that was expected to be used. This usage should be monitored and confirmed. By attaching to a different cgroup than the one that is expected, excess permissions and resources might be granted to the container and thus, can prove to be unsafe.

Solution

Do not use --cgroup-parentoption in docker run command unless needed.

Impact:

None.

Default Value:

By default, containers run under dockercgroup.

See Also

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

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-39

Plugin: Unix

Control ID: 2cc7ea2a54ce70ef7bdb858ea0b0fac1d360626b66cfa7c56c563d3c43acee08