[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130814184352.GA6381@redhat.com>
Date: Wed, 14 Aug 2013 20:43:52 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Rui Xiang <rui.xiang@...wei.com>
Cc: Andy Lutomirski <luto@...capital.net>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] userns: initialize the depth of user_namespace chain
On 08/14, Rui Xiang wrote:
>
> On 2013/8/14 13:06, Andy Lutomirski wrote:
> > On Tue, Aug 13, 2013 at 10:04 PM, Rui Xiang <rui.xiang@...wei.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.
Well, I am fine either way,
> but the initialization of level should be necessary.
but it is not necessary. This is just an "arbitrary" limit for now,
32 non-root namespaces. Perhaps we should count init_user_ns too.
Hmm. but I just realized that "> 32" in create_user_ns() should be
">= 32" in this case.
Oleg.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists