[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110115141220.GA2252@localhost>
Date: Sat, 15 Jan 2011 08:12:20 -0600
From: "Serge E. Hallyn" <serge.hallyn@...onical.com>
To: Bastian Blank <bastian@...di.eu.org>,
"Serge E. Hallyn" <serge@...lyn.com>,
containers@...ts.linux-foundation.org,
kernel list <linux-kernel@...r.kernel.org>,
LSM <linux-security-module@...r.kernel.org>
Subject: Re: [PATCH 4/7] allow killing tasks in your own or child userns
Quoting Bastian Blank (bastian@...di.eu.org):
> On Sat, Jan 15, 2011 at 12:31:14AM +0000, Serge E. Hallyn wrote:
> > Quoting Bastian Blank (bastian@...di.eu.org):
> > > On Tue, Jan 11, 2011 at 01:31:52AM +0000, Serge E. Hallyn wrote:
> > > > Quoting Bastian Blank (bastian@...di.eu.org):
> > > > > What is this flag used for anyway? I only see it used in the accounting
> > > > > stuff, and if every user can get it, it is not longer useful.
> > > > hm, I'm not sure... maybe noone is using it!
> > > However with your patches (or at least the goal), everyone is super-user
> > > in derived namespaces.
> >
> > No, a task just sitting in a derived ns won't necessarily need/use
> > super-user privileges... (and, if we ever get far enough along, it
> > won't even necessarily have CAP_SYS_ADMIN/etc targeted to the parent
> > userns, bc it won't need those to do the unshares).
>
> The goal, as I understand it, is that everyone can create derived user
> namespaces. However the creator have automatically all the capabilities
> in the derived namespace.
Yes. While he is root in that namespace. But then he can drop
privileges and spawn new tasks, which have no capabilities in any
namespace.
Even if he didn't do that, the PF_SUPERPRIV flag doesn't say that
you have capabilities, but that you used them. So if I star a task
as root which never does anything but ls /root, then the flag should
not be set.
> So he can use them to gain this super-user
> flag. Even killing a tasks in the derived namespace needs the capability
> already.
-serge
--
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