2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License as
4 * published by the Free Software Foundation, version 2 of the
8 #include <linux/module.h>
9 #include <linux/version.h>
10 #include <linux/nsproxy.h>
11 #include <linux/user_namespace.h>
13 struct user_namespace init_user_ns
= {
15 .refcount
= ATOMIC_INIT(2),
17 .root_user
= &root_user
,
20 EXPORT_SYMBOL_GPL(init_user_ns
);
24 struct user_namespace
* copy_user_ns(int flags
, struct user_namespace
*old_ns
)
26 struct user_namespace
*new_ns
;
35 void free_user_ns(struct kref
*kref
)
37 struct user_namespace
*ns
;
39 ns
= container_of(kref
, struct user_namespace
, kref
);
43 #endif /* CONFIG_USER_NS */