CHROMIUM: cgroups: relax permissions on moving tasks between cgroups
authorDmitry Torokhov <dtor@chromium.org>
Thu, 6 Oct 2016 23:14:16 +0000 (16:14 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 25 Oct 2016 13:50:52 +0000 (21:50 +0800)
commite129860f82d8484528e51619cc0d55434cbd14bd
tree604cdd6effeafbf4992179a9cbb477a541e392dd
parent6ddbd662d0bac4e4cb998b4c1fa44cd7c679c3cb
CHROMIUM: cgroups: relax permissions on moving tasks between cgroups

Android expects system_server to be able to move tasks between different
cgroups/cpusets, but does not want to be running as root. Let's relax
permission check so that processes can move other tasks if they have
CAP_SYS_NICE in the affected task's user namespace.

BUG=b:31790445,chromium:647994
TEST=Boot android container, examine logcat

Change-Id: Ia919c66ab6ed6a6daf7c4cf67feb38b13b1ad09b
Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/394927
Reviewed-by: Ricky Zhou <rickyz@chromium.org>
kernel/cgroup.c