OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix cgroup: Add generic cgroup subsystem permission checks.
[android-x86/kernel.git]
/
kernel
/
cgroup.c
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;