OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
885bbbe
)
Fix cgroup: Add generic cgroup subsystem permission checks.
author
Colin Cross
<ccross@android.com>
Mon, 22 Mar 2010 18:28:03 +0000
(11:28 -0700)
committer
Iliyan Malchev
<malchev@google.com>
Mon, 23 May 2011 22:43:27 +0000
(15:43 -0700)
Change-Id: Ib82f6a716686a3ebb4592112400fc5e4a2ce066c
Signed-off-by: Colin Cross <ccross@android.com>
kernel/cgroup.c
patch
|
blob
|
history
diff --git
a/kernel/cgroup.c
b/kernel/cgroup.c
index
aab7793
..
d1fe8b2
100644
(file)
--- a/
kernel/cgroup.c
+++ b/
kernel/cgroup.c
@@
-1783,6
+1783,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;