cgroups is for controlling resource allocation (CPU, RAM, etc). What you mean is probably namespaces.
It's technically both I guess, but fair correction.