aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cgroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r--kernel/cgroup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index ad8eae5bb80..a0c6af34d50 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -2214,9 +2214,9 @@ retry_find_task:
2214 * only need to check permissions on one of them. 2214 * only need to check permissions on one of them.
2215 */ 2215 */
2216 tcred = __task_cred(tsk); 2216 tcred = __task_cred(tsk);
2217 if (cred->euid && 2217 if (!uid_eq(cred->euid, GLOBAL_ROOT_UID) &&
2218 cred->euid != tcred->uid && 2218 !uid_eq(cred->euid, tcred->uid) &&
2219 cred->euid != tcred->suid) { 2219 !uid_eq(cred->euid, tcred->suid)) {
2220 rcu_read_unlock(); 2220 rcu_read_unlock();
2221 ret = -EACCES; 2221 ret = -EACCES;
2222 goto out_unlock_cgroup; 2222 goto out_unlock_cgroup;