From: Tejun Heo Subject: Re: [RFC PATCH 1/2] devices cgroup: allow can_attach() if ns_capable Date: Thu, 24 Oct 2013 11:57:45 +0100 Message-ID: <20131024105745.GC13159@mtj.dyndns.org> References: <20130723181606.GA6342@sergelap> <20130723183018.GF21100@mtj.dyndns.org> <20130723183841.GA9021@tp> <20131023004130.GA12788@mail.hallyn.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20131023004130.GA12788-7LNsyQBKDXoIagZqoN9o3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Serge E. Hallyn" Cc: Containers , Serge Hallyn , "Eric W. Biederman" , lkml List-Id: containers.vger.kernel.org On Wed, Oct 23, 2013 at 12:41:30AM +0000, Serge E. Hallyn wrote: > Quoting Tejun Heo (tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org): > > On Tue, Jul 23, 2013 at 2:38 PM, Serge Hallyn wrote: > > > This doesn't delegate it into the container. It allows me, on the host, > > > to set the cgroup for a container. > > > > Hmmm? I'm a bit confused. Isn't the description saying that the patch > > allows pseudo-root in userns to change cgroup membership even if it > > isn't actually root? > > > > Besides, I find the whole check rather bogus and would actually much > > prefer just nuking the check and just follow the standard permission > > checks. > > Can we please nuke it like this then? > > From b840083ec8fa1f0645ae925c79db3dc51edd019c Mon Sep 17 00:00:00 2001 > From: Serge Hallyn > Date: Wed, 23 Oct 2013 01:34:00 +0200 > Subject: [PATCH 1/1] device_cgroup: remove can_attach > > It is really only wanting to duplicate a check which is already done by the > cgroup subsystem. > > With this patch, user jdoe still cannot move pid 1 into a devices cgroup > he owns, but now he can move his own other tasks into devices cgroups. > > Signed-off-by: Serge Hallyn > Cc: Aristeu Rozanski > Cc: Tejun Heo Applied to cgroup/for-3.13. Thanks. -- tejun