From: Rui Xiang <rui.xiang@huawei.com>
To: <linux-kernel@vger.kernel.org>
Cc: <oleg@redhat.com>, <luto@amacapital.net>
Subject: [PATCH] userns: initialize the depth of user_namespace chain
Date: Wed, 14 Aug 2013 13:04:15 +0800 [thread overview]
Message-ID: <520B0FCF.5080809@huawei.com> (raw)
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
next reply other threads:[~2013-08-14 5:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-14 5:04 Rui Xiang [this message]
2013-08-14 5:06 ` [PATCH] userns: initialize the depth of user_namespace chain Andy Lutomirski
2013-08-14 6:44 ` Rui Xiang
2013-08-14 18:43 ` Oleg Nesterov
2013-08-15 1:50 ` Rui Xiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=520B0FCF.5080809@huawei.com \
--to=rui.xiang@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=oleg@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.