]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/cgroup.c
CRED: Separate task security context from task_struct
[linux-2.6-omap-h63xx.git] / kernel / cgroup.c
index 78f9b310c4f3f0dca9f44b6d80ade21fb21d80af..e210526e64010bf599817f7ae69d45ded332ae3e 100644 (file)
@@ -1293,7 +1293,9 @@ static int attach_task_by_pid(struct cgroup *cgrp, u64 pid)
                rcu_read_unlock();
 
                euid = current_euid();
-               if (euid && euid != tsk->uid && euid != tsk->suid) {
+               if (euid &&
+                   euid != tsk->cred->uid &&
+                   euid != tsk->cred->suid) {
                        put_task_struct(tsk);
                        return -EACCES;
                }