memcg: add permission check
authorRom Lemarchand <romlem@android.com>
Fri, 7 Nov 2014 17:42:40 +0000 (09:42 -0800)
committerRom Lemarchand <romlem@android.com>
Fri, 7 Nov 2014 21:47:36 +0000 (13:47 -0800)
commitcce78bc02ff0ea2d21e88e3438d65272b898aa35
treec10aa64438bb92fbdd8d900d9381f1ded8dd20d2
parent57114e95e8c4f5035c993fc74bbe94cd9573f1bb
memcg: add permission check

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

Bug: 18260435
Change-Id: If7d37bf90c1544024c4db53351adba6a64966250
Signed-off-by: Rom Lemarchand <romlem@android.com>
mm/memcontrol.c