memcg: add permission check
authorRom Lemarchand <romlem@android.com>
Fri, 7 Nov 2014 17:42:40 +0000 (09:42 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:43 +0000 (13:53 -0800)
commite6f5c0c0ec80c5f4c029499e987f9daba9dcc3ad
tree11e68a6720c755c814741cf657fde5407cf5b07d
parent6809864a2cc59332b246c183a2b78328f6aa551e
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