cgroup: disallow debug controller on the default hierarchy
commit5533e0114425dcdb878f11b291f2727af8667a7c
authorTejun Heo <tj@kernel.org>
Wed, 14 May 2014 23:33:07 +0000 (14 19:33 -0400)
committerTejun Heo <tj@kernel.org>
Mon, 19 May 2014 20:37:06 +0000 (19 16:37 -0400)
tree4dbbe79b3cee1ab19765ee9984db4b24f283f83d
parenta3e3354d56d8c121dad42ee7f63d96bf81522c0e
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>
include/linux/cgroup.h
include/linux/cgroup_subsys.h
kernel/cgroup.c