From: Rui Xiang <rui.xiang@huawei.com>
To: Andy Lutomirski <luto@amacapital.net>
Cc: <linux-kernel@vger.kernel.org>, <oleg@redhat.com>
Subject: Re: [PATCH] userns: initialize the depth of user_namespace chain
Date: Wed, 14 Aug 2013 14:44:56 +0800 [thread overview]
Message-ID: <520B2768.1090001@huawei.com> (raw)
In-Reply-To: <CALCETrUJTMVo4sCiVRHvVocja3Q9_hXPdc1xQ0D+EtPUT_2T7w@mail.gmail.com>
On 2013/8/14 13:06, Andy Lutomirski wrote:
> On Tue, Aug 13, 2013 at 10:04 PM, Rui Xiang <rui.xiang@huawei.com> wrote:
>> The level of init_user_ns shoule be 1.
>
> What's wrong with zero?
>
No problem. It is just consistent with commit 8742f229b63, IMHO.
but the initialization of level should be necessary.
Thanks.
> --Andy
>
>>
>> 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 prev parent reply other threads:[~2013-08-14 6:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=520B2768.1090001@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox