X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fuser_namespace.c;h=4c9006275df7fef80ae61944d39cdeea78246bb0;hb=6cb53d7a6f40858181facde0f52587731d2e621f;hp=7af90fc4f0fd3d870c1f5dbb3b0771fc16bbc5a4;hpb=0ce49a3945474fc942ec37c0c0efece60f592f80;p=linux-2.6 diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c index 7af90fc4f0..4c9006275d 100644 --- a/kernel/user_namespace.c +++ b/kernel/user_namespace.c @@ -10,17 +10,6 @@ #include #include -struct user_namespace init_user_ns = { - .kref = { - .refcount = ATOMIC_INIT(2), - }, - .root_user = &root_user, -}; - -EXPORT_SYMBOL_GPL(init_user_ns); - -#ifdef CONFIG_USER_NS - /* * Clone a new ns copying an original user ns, setting refcount to 1 * @old_ns: namespace to clone @@ -84,5 +73,3 @@ void free_user_ns(struct kref *kref) release_uids(ns); kfree(ns); } - -#endif /* CONFIG_USER_NS */