linux-uconsole/Documentation/cgroups
Colin Cross bb5b603036 cgroup: Add generic cgroup subsystem permission checks
Rather than using explicit euid == 0 checks when trying to move
tasks into a cgroup via CFS, move permission checks into each
specific cgroup subsystem. If a subsystem does not specify a
'allow_attach' handler, then we fall back to doing our checks
the old way.

Use the 'allow_attach' handler for the 'cpu' cgroup to allow
non-root processes to add arbitrary processes to a 'cpu' cgroup
if it has the CAP_SYS_NICE capability set.

This version of the patch adds a 'allow_attach' handler instead
of reusing the 'can_attach' handler.  If the 'can_attach' handler
is reused, a new cgroup that implements 'can_attach' but not
the permission checks could end up with no permission checks
at all.

Change-Id: Icfa950aa9321d1ceba362061d32dc7dfa2c64f0c
Original-Author: San Mehat <san@google.com>
Signed-off-by: Colin Cross <ccross@android.com>
2011-07-12 22:58:35 -07:00
..
00-INDEX trivial: fix where cgroup documentation is not correctly referred to 2009-03-30 15:22:02 +02:00
blkio-controller.txt Documentation: fix cgroup blkio throttle filenames 2011-07-06 13:17:51 -07:00
cgroup_event_listener.c tree-wide: fix comment/printk typos 2010-11-01 15:38:34 -04:00
cgroups.txt cgroup: Add generic cgroup subsystem permission checks 2011-07-12 22:58:35 -07:00
cpuacct.txt Merge commit 'v3.0-rc5' into android-3.0 2011-06-29 13:54:42 -07:00
cpusets.txt Documentation: update cgroupfs mount point 2011-06-15 21:52:50 -07:00
devices.txt Documentation: update cgroupfs mount point 2011-06-15 21:52:50 -07:00
freezer-subsystem.txt Documentation: update cgroupfs mount point 2011-06-15 21:52:50 -07:00
memcg_test.txt tree-wide: fix comment/printk typos 2010-11-01 15:38:34 -04:00
memory.txt Documentation: fix cgroup typos and formatting 2011-06-15 21:52:50 -07:00
resource_counter.txt res_counter: update documentation 2009-04-13 15:04:30 -07:00