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.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/516

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-39

Plugin: Unix

Control ID: 729ab82011b43be55e408ea15aa3830c68ed799bb3a35eeaaf2bb82736e99d95