summaryrefslogtreecommitdiff
path: root/kernel/cgroup.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/cgroup.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/cgroup.c')
-rw-r--r--kernel/cgroup.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 01ab75da090..f6e7b4ad2d6 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -58,7 +58,6 @@
#include <linux/eventfd.h>
#include <linux/poll.h>
#include <linux/flex_array.h> /* used in cgroup_attach_proc */
-#include <linux/capability.h>
#include <asm/atomic.h>
@@ -1844,15 +1843,6 @@ int cgroup_attach_task(struct cgroup *cgrp, struct task_struct *tsk)
failed_ss = ss;
goto out;
}
- } else if (!capable(CAP_SYS_ADMIN)) {
- const struct cred *cred = current_cred(), *tcred;
-
- /* No can_attach() - check perms generically */
- tcred = __task_cred(tsk);
- if (cred->euid != tcred->uid &&
- cred->euid != tcred->suid) {
- return -EACCES;
- }
}
if (ss->can_attach_task) {
retval = ss->can_attach_task(cgrp, tsk);