]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - ipc/msgutil.c
proc: Usable inode numbers for the namespace file descriptors.
[karo-tx-linux.git] / ipc / msgutil.c
index 26143d377c951be9fd5e855074d431707bfd9f10..6471f1bdae96f2c6650a3c369bb77d0dc357d388 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/msg.h>
 #include <linux/ipc_namespace.h>
 #include <linux/utsname.h>
+#include <linux/proc_fs.h>
 #include <asm/uaccess.h>
 
 #include "util.h"
@@ -30,6 +31,7 @@ DEFINE_SPINLOCK(mq_lock);
 struct ipc_namespace init_ipc_ns = {
        .count          = ATOMIC_INIT(1),
        .user_ns = &init_user_ns,
+       .proc_inum = PROC_IPC_INIT_INO,
 };
 
 atomic_t nr_ipc_ns = ATOMIC_INIT(1);