Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934770AbcLMSrZ (ORCPT ); Tue, 13 Dec 2016 13:47:25 -0500 Received: from mail-oi0-f48.google.com ([209.85.218.48]:35718 "EHLO mail-oi0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934676AbcLMSrV (ORCPT ); Tue, 13 Dec 2016 13:47:21 -0500 MIME-Version: 1.0 In-Reply-To: <20161213184057.GA17672@htj.duckdns.org> References: <1481593143-18756-1-git-send-email-john.stultz@linaro.org> <20161213184057.GA17672@htj.duckdns.org> From: John Stultz Date: Tue, 13 Dec 2016 10:47:19 -0800 Message-ID: Subject: Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups To: Tejun Heo Cc: Michael Kerrisk , lkml , Li Zefan , Jonathan Corbet , "open list:CONTROL GROUP (CGROUP)" , Android Kernel Team , Rom Lemarchand , Colin Cross , Dmitry Shmidt , Todd Kjos , Christian Poetzsch , Amit Pundir , Dmitry Torokhov , Kees Cook , "Serge E . Hallyn" , Andy Lutomirski , Linux API Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1312 Lines: 33 On Tue, Dec 13, 2016 at 10:40 AM, Tejun Heo wrote: > Hello, > > On Tue, Dec 13, 2016 at 08:08:16AM -0800, John Stultz wrote: >> On Tue, Dec 13, 2016 at 1:47 AM, Michael Kerrisk (man-pages) >> wrote: >> > On 13 December 2016 at 02:39, John Stultz wrote: >> > So, back to the discussion of silos. I understand the argument for >> > wanting a new silo. But, in that case can we at least try not to make >> > it a single-use silo? >> > >> > How about CAP_CGROUP_CONTROL or some such, with the idea that this >> > might be a capability that allows the holder to step outside usual >> > cgroup rules? At the moment, that capability would allow only one such >> > step, but maybe there would be others in the future. >> >> This sounds reasonable to me. Tejun/Andy: Objections? > > Control group control? The word control has a specific meaning for > cgroups and that second control doesn't make much sense to me. But this would go against the long tradition of RAS syndrome and things like "struct task_struct". :) > Given > how this is mostly to patch up a hole in v1's delegation model and how > migration operations are different from others, I doubt that we will > end up overloading it. Maybe just CAP_CGROUP? Sounds ok to me. thanks -john