summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2018-03-23 10:53:44 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2018-03-23 18:26:47 +1100
commit3985fbe853e8d0dd87c71c1ed16010ace37c2afc (patch)
tree9658bc8f1b1a39197e2ba13cfbead30eb5605935 /init
parent972de4b4e7c697180747dabbf70c6655dc10bfe0 (diff)
downloadlinux-next-3985fbe853e8d0dd87c71c1ed16010ace37c2afc.tar.gz
uts: create "struct uts_namespace" from kmem_cache
So "struct uts_namespace" can enjoy fine-grained SLAB debugging and usercopy protection. I'd prefer shorter name "utsns" but there is "user_namespace" already. Link: http://lkml.kernel.org/r/20180228215158.GA23146@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Serge Hallyn <serge@hallyn.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'init')
-rw-r--r--init/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c
index 969eaf140ef0..9c2f52b65bfc 100644
--- a/init/main.c
+++ b/init/main.c
@@ -51,6 +51,7 @@
#include <linux/taskstats_kern.h>
#include <linux/delayacct.h>
#include <linux/unistd.h>
+#include <linux/utsname.h>
#include <linux/rmap.h>
#include <linux/mempolicy.h>
#include <linux/key.h>
@@ -689,6 +690,7 @@ asmlinkage __visible void __init start_kernel(void)
cred_init();
fork_init();
proc_caches_init();
+ uts_ns_init();
buffer_init();
key_init();
security_init();