]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/user.c
CRED: Separate task security context from task_struct
[linux-2.6-omap-h63xx.git] / kernel / user.c
index 39d6159fae430cf60811839f4e2dbd20aadb9e4a..104d22ac84d5f22cc4a9b84a79c56991487833a0 100644 (file)
@@ -457,11 +457,11 @@ void switch_uid(struct user_struct *new_user)
         * cheaply with the new uid cache, so if it matters
         * we should be checking for it.  -DaveM
         */
-       old_user = current->user;
+       old_user = current->cred->user;
        atomic_inc(&new_user->processes);
        atomic_dec(&old_user->processes);
        switch_uid_keyring(new_user);
-       current->user = new_user;
+       current->cred->user = new_user;
        sched_switch_user(current);
 
        /*