Although cgroups seemingly allow to control the CFS bandwidth of a cgroup, I don't see a way of enforcing a cpu time limit on a cgroup. The use case is that I would like to catch student programs that e.g. go into an infinite loop.
Can I limit total cputime used by a cgroup?
linux