]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/capability.c
CRED: Separate task security context from task_struct
[linux-2.6-omap-h63xx.git] / kernel / capability.c
index 58b00519624a3533800eb0ffe4dcc4d60b523c6d..a404b980b1bd8362ba519fcd4cf4086e32d82f76 100644 (file)
@@ -171,8 +171,8 @@ kernel_cap_t cap_set_effective(const kernel_cap_t pE_new)
 
        spin_lock(&task_capability_lock);
 
-       pE_old = current->cap_effective;
-       current->cap_effective = pE_new;
+       pE_old = current->cred->cap_effective;
+       current->cred->cap_effective = pE_new;
 
        spin_unlock(&task_capability_lock);