android_kernel_oneplus_msm8998/Documentation/cgroups
Colin Cross 1811046286 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>
2016-02-16 13:53:43 -08:00
..
00-INDEX cgroup: add documentation for the PIDs controller 2015-07-14 17:29:23 -04:00
blkio-controller.txt Documentation: cgroups: just fix a few typos 2015-09-24 15:53:28 -06:00
cgroups.txt cgroup: Add generic cgroup subsystem permission checks 2016-02-16 13:53:43 -08:00
cpuacct.txt
cpusets.txt cpuset, isolcpus: document relationship between cpusets & isolcpus 2015-03-19 14:28:20 -04:00
devices.txt
freezer-subsystem.txt Documentation: cgroups: just fix a few typos 2015-09-24 15:53:28 -06:00
hugetlb.txt mm: hugetlb_cgroup: convert to lockless page counters 2014-12-10 17:41:04 -08:00
memcg_test.txt mm: memcontrol: rewrite uncharge API 2014-08-08 15:57:17 -07:00
memory.txt memcg: add per cgroup dirty page accounting 2015-06-02 08:33:33 -06:00
net_cls.txt netfilter: x_tables: lightweight process control group matching 2014-01-03 23:41:44 +01:00
net_prio.txt
pids.txt cgroup: add documentation for the PIDs controller 2015-07-14 17:29:23 -04:00
unified-hierarchy.txt There is a nice new document from Neil on how pathname lookups work and 2015-11-05 15:59:24 -08:00