X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fuser_namespace.c;h=a9ab0596de44afe2bf3daa75c2c4ddca064c7f97;hb=f43798c27684ab925adde7d8acc34c78c6e50df8;hp=7af90fc4f0fd3d870c1f5dbb3b0771fc16bbc5a4;hpb=67e74fdd81349a92fcece318a5ee41714273eb01;p=linux-2.6-omap-h63xx.git diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c index 7af90fc4f0f..a9ab0596de4 100644 --- a/kernel/user_namespace.c +++ b/kernel/user_namespace.c @@ -8,19 +8,9 @@ #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 +74,4 @@ void free_user_ns(struct kref *kref) release_uids(ns); kfree(ns); } - -#endif /* CONFIG_USER_NS */ +EXPORT_SYMBOL(free_user_ns);