public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] userns: initialize the depth of user_namespace chain
@ 2013-08-14  5:04 Rui Xiang
  2013-08-14  5:06 ` Andy Lutomirski
  0 siblings, 1 reply; 5+ messages in thread
From: Rui Xiang @ 2013-08-14  5:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: oleg, luto

The level of init_user_ns shoule be 1.

Signed-off-by: Rui Xiang <rui.xiang@huawei.com>
---
 kernel/user.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/user.c b/kernel/user.c
index 69b4c3d..32da187 100644
--- a/kernel/user.c
+++ b/kernel/user.c
@@ -48,6 +48,7 @@ struct user_namespace init_user_ns = {
 		},
 	},
 	.count = ATOMIC_INIT(3),
+	.level = 1,
 	.owner = GLOBAL_ROOT_UID,
 	.group = GLOBAL_ROOT_GID,
 	.proc_inum = PROC_USER_INIT_INO,
-- 
1.8.2.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-15  1:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-14  5:04 [PATCH] userns: initialize the depth of user_namespace chain Rui Xiang
2013-08-14  5:06 ` Andy Lutomirski
2013-08-14  6:44   ` Rui Xiang
2013-08-14 18:43     ` Oleg Nesterov
2013-08-15  1:50       ` Rui Xiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox