X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fuser_namespace.c;h=532858fa5b882eb8c3848b4c9ce430440297d2c0;hb=399ccdc1cd4e92e541d4dacbbf18c52bd693418b;hp=7af90fc4f0fd3d870c1f5dbb3b0771fc16bbc5a4;hpb=0ce49a3945474fc942ec37c0c0efece60f592f80;p=linux-2.6-omap-h63xx.git diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c index 7af90fc4f0f..532858fa5b8 100644 --- a/kernel/user_namespace.c +++ b/kernel/user_namespace.c @@ -6,21 +6,10 @@ */ #include -#include #include +#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,4 @@ void free_user_ns(struct kref *kref) release_uids(ns); kfree(ns); } - -#endif /* CONFIG_USER_NS */ +EXPORT_SYMBOL(free_user_ns);