[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <m1r5dpxfkp.fsf@fess.ebiederm.org>
Date: Fri, 10 Dec 2010 17:29:10 -0800
From: ebiederm@...ssion.com (Eric W. Biederman)
To: Alexey Dobriyan <adobriyan@...il.com>
Cc: "Serge E. Hallyn" <serge@...lyn.com>,
LSM <linux-security-module@...r.kernel.org>,
James Morris <jmorris@...ei.org>,
Kees Cook <kees.cook@...onical.com>,
containers@...ts.linux-foundation.org,
kernel list <linux-kernel@...r.kernel.org>
Subject: Re: [RFC PATCH 1/4] Add a user_namespace as creator/owner of uts_namespace
Alexey Dobriyan <adobriyan@...il.com> writes:
> On Thu, Dec 09, 2010 at 05:20:27PM +0000, Serge E. Hallyn wrote:
>> struct uts_namespace {
>> struct kref kref;
>> struct new_utsname name;
>> + struct user_namespace *user_ns;
>
> You're going to add these to the rest?
That is the idea.
namespaces and other objects of interest will keep a user_ns
pointer referencing the context in which they were created.
I took a quick look and all of the namespaces seem to have capability
checks that we want to allow if you are in the proper context.
What is particularly interesting is that this makes a root user in
something other than the init_user_ns with all capabilities essentially
a normal user because capable(CAP_XXX) becomes capable(&init_user_ns, CAP_XXX).
And as such will always fail except where we have updated the capability
checks.
Eric
--
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