CRED: Wrap task credential accesses in the core kernel
[deliverable/linux.git] / kernel / user_namespace.c
index 532858fa5b882eb8c3848b4c9ce430440297d2c0..f82730adea007104087663a505f8a9f40e6d9ee5 100644 (file)
@@ -38,7 +38,7 @@ static struct user_namespace *clone_user_ns(struct user_namespace *old_ns)
        }
 
        /* Reset current->user with a new one */
-       new_user = alloc_uid(ns, current->uid);
+       new_user = alloc_uid(ns, current_uid());
        if (!new_user) {
                free_uid(ns->root_user);
                kfree(ns);
This page took 0.0252 seconds and 5 git commands to generate.