diff options
author | Tejun Heo <tj@kernel.org> | 2014-05-14 19:33:07 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-05-19 16:37:06 -0400 |
commit | 5533e0114425dcdb878f11b291f2727af8667a7c (patch) | |
tree | 4dbbe79b3cee1ab19765ee9984db4b24f283f83d /include/linux/cgroup.h | |
parent | a3e3354d56d8c121dad42ee7f63d96bf81522c0e (diff) | |
download | op-kernel-dev-5533e0114425dcdb878f11b291f2727af8667a7c.zip op-kernel-dev-5533e0114425dcdb878f11b291f2727af8667a7c.tar.gz |
cgroup: disallow debug controller on the default hierarchy
The debug controller, as its name suggests, exposes cgroup core
internals to userland to aid debugging. Unfortunately, except for the
name, there's no provision to prevent its usage in production
configurations and the controller is widely enabled and mounted
leaking internal details to userland. Like most other debug
information, the information exposed by debug isn't interesting even
for debugging itself once the related parts are working reliably.
This controller has no reason for existing. This patch implements
cgrp_dfl_root_inhibit_ss_mask which can suppress specific subsystems
on the default hierarchy and adds the debug subsystem to it so that it
can be gradually deprecated as usages move towards the unified
hierarchy.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r-- | include/linux/cgroup.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 4afe544..8a111dd 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -305,6 +305,8 @@ enum { * the flag is not created. * * - blkcg: blk-throttle becomes properly hierarchical. + * + * - debug: disallowed on the default hierarchy. */ CGRP_ROOT_SANE_BEHAVIOR = (1 << 0), |