summaryrefslogtreecommitdiff
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2011-07-12 20:12:45 -0700
committerColin Cross <ccross@android.com>2011-07-12 20:45:13 -0700
commit497f5982a7eae716267213a8fdc3ea4c6ac09e5e (patch)
tree98b363939e3c4a302d4194f86f3f06b0f5a54bdf /kernel/sched.c
parent75c56a81116e51c5cf15c0641906d0745188cd16 (diff)
Revert "cgroup: Add generic cgroup subsystem permission checks."
This reverts commit 1d38bc7d0523af2233b4280e2aeab34c6a076665. Change-Id: I2c5066b696cbdd5ca117ed74718bcb7e70e878e7 Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 05735d326a64..db2b408b62b5 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8801,15 +8801,6 @@ cpu_cgroup_destroy(struct cgroup_subsys *ss, struct cgroup *cgrp)
static int
cpu_cgroup_can_attach_task(struct cgroup *cgrp, struct task_struct *tsk)
{
- if ((current != tsk) && (!capable(CAP_SYS_NICE))) {
- const struct cred *cred = current_cred(), *tcred;
-
- tcred = __task_cred(tsk);
-
- if (cred->euid != tcred->uid && cred->euid != tcred->suid)
- return -EPERM;
- }
-
#ifdef CONFIG_RT_GROUP_SCHED
if (!sched_rt_can_attach(cgroup_tg(cgrp), tsk))
return -EINVAL;