X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=init%2FKconfig;h=bb9b4dd55889f0605b07ddfc73cc105d72b18908;hb=abebcdfb64f1b39eeeb14282d9cd4aad1ed86f8d;hp=ba1e6eaf4c36e72bdf29d0b683b9c118fb0b38db;hpb=65a99597f044c083983f4274ab049c9ec3b9d764;p=deliverable%2Flinux.git diff --git a/init/Kconfig b/init/Kconfig index ba1e6eaf4c36..bb9b4dd55889 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -947,6 +947,22 @@ config CGROUP_FREEZER Provides a way to freeze and unfreeze all tasks in a cgroup. +config CGROUP_PIDS + bool "PIDs cgroup subsystem" + help + Provides enforcement of process number limits in the scope of a + cgroup. Any attempt to fork more processes than is allowed in the + cgroup will fail. PIDs are fundamentally a global resource because it + is fairly trivial to reach PID exhaustion before you reach even a + conservative kmemcg limit. As a result, it is possible to grind a + system to halt without being limited by other cgroup policies. The + PIDs cgroup subsystem is designed to stop this from happening. + + It should be noted that organisational operations (such as attaching + to a cgroup hierarchy will *not* be blocked by the PIDs subsystem), + since the PIDs limit only affects a process's ability to fork, not to + attach to a cgroup. + config CGROUP_DEVICE bool "Device controller for cgroups" help