Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S944561AbcJSUzs (ORCPT ); Wed, 19 Oct 2016 16:55:48 -0400 Received: from mail-yw0-f178.google.com ([209.85.161.178]:34678 "EHLO mail-yw0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941852AbcJSUzq (ORCPT ); Wed, 19 Oct 2016 16:55:46 -0400 MIME-Version: 1.0 In-Reply-To: <20161019205251.GG3044@htj.duckdns.org> References: <1476743724-9104-1-git-send-email-john.stultz@linaro.org> <20161019205251.GG3044@htj.duckdns.org> From: John Stultz Date: Wed, 19 Oct 2016 13:55:45 -0700 Message-ID: Subject: Re: [PATCH] cgroup: Add new capability to allow a process to migrate other tasks between cgroups To: Tejun Heo Cc: Michael Kerrisk , Andy Lutomirski , lkml , Li Zefan , Jonathan Corbet , "open list:CONTROL GROUP (CGROUP)" , Android Kernel Team , Rom Lemarchand , Colin Cross , Dmitry Shmidt , Ricky Zhou , Dmitry Torokhov , Todd Kjos , Christian Poetzsch , Amit Pundir , "Serge E . Hallyn" , 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: 986 Lines: 27 On Wed, Oct 19, 2016 at 1:52 PM, Tejun Heo wrote: > Hello, > > On Tue, Oct 18, 2016 at 09:54:37AM -0700, John Stultz wrote: >> > Also, CAP_SYS_RESOURCE deserves consideration (34 uses in capable() >> > checks). I'd say, since cgroups are about resources, so there's >> > something of a match there., so it's also worth considering. >> >> I'll try to look into CAP_SYS_RESOURCE. >> >> Colin/Todd: Any objection from the Android side on CAP_SYS_RESOURCE? >> >> (Or we could just create a new 512bit CAP2_ capabilities interface! :P) > > FWIW, if CAP_SYS_RESOURCE works, I'd be happy with that. CAP_SYS_RESOURCE would work for Android right now (system_server already has CAP_SYS_RESOURCE), so I'm optimistic this will be the best approach (I've got a newer, much simpler patch queued for sending out here). But I'm waiting to hear back from folks on the Android side to make sure they aren't planning on removing that CAP from system_server any time soon. thanks -john