X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fuser_namespace.c;h=532858fa5b882eb8c3848b4c9ce430440297d2c0;hb=afed26d151ba90b08361d4af0223daa362136ebd;hp=7af90fc4f0fd3d870c1f5dbb3b0771fc16bbc5a4;hpb=7bae705ef2c2daac1993de03e5be93b5c300fc5e;p=pandora-kernel.git diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c index 7af90fc4f0fd..532858fa5b88 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);