summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-03-22 11:28:03 -0700
committerColin Cross <ccross@android.com>2010-09-29 17:49:18 -0700
commit8dc808da529377d101b38b4d5ad1dbbc9aaea430 (patch)
tree00c917f4637d33375664f97ff7635427ffac2e30
parentc316a1d4a0867c767cda23397e634e28905a8cc7 (diff)
Fix cgroup: Add generic cgroup subsystem permission checks.
Change-Id: Ib82f6a716686a3ebb4592112400fc5e4a2ce066c Signed-off-by: Colin Cross <ccross@android.com>
-rw-r--r--kernel/cgroup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index f3d6f30c8cd1..b90316504417 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -1723,6 +1723,7 @@ 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;