mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
Fix cgroup: Add generic cgroup subsystem permission checks.
Change-Id: Ib82f6a716686a3ebb4592112400fc5e4a2ce066c Signed-off-by: Colin Cross <ccross@android.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user