5.24 Ensure cgroup usage is confirmed

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 cgroups under 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-parent option in docker run command unless needed.
Impact:
None.
Default Value:
By default, containers run under docker cgroup.

See Also

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

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

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

Plugin: Unix

Control ID: eb9a258a29b1fdb5305febf0554fee8d794b8f25846356e500ac63b5f8a8f858