From: Tejun Heo Subject: Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups Date: Tue, 13 Dec 2016 13:47:03 -0500 Message-ID: <20161213184703.GB17672@htj.duckdns.org> References: <1481593143-18756-1-git-send-email-john.stultz@linaro.org> <221e80bd-3d99-6c35-dcd3-b2547f0abb11@schaufler-ca.com> <4c60e1be-c00a-5f26-f5de-7d32b9cb0f62@schaufler-ca.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=rqhU9bTCWTJ4e/iDlUYKToUQsYHOOp71wnWfpFOx//0=; b=BfScXeCV+EREK2JnQHoE9U91pEG74nKrhH5mqRhNx1NfSKb78tCgFN1wsee/9EcA25 p5SZB/QWs0rfAtSuknzajF9zdVV/pQKiuPIWNArnbqD4M75VrFs3X2R7hLPUzPpWBQ05 97g8pWfuYRvZ4Ny2mG7accl5Rt8rr72wb2UOOvhorJbd6/g8s3OU23sfq18yKZWctha5 1qhiT5zj83gVhOtI8E2BGTIUHlfBwrrGUJtw2Y+D39imRcPBbOIsK9g/wA2mCIi0L2t0 vf8rCGhRs3zlK8b7kumLgGpjLsW+STGngIJuHy+8gppZL9AgbkyF22nKtOCcJ8JuvLuK rbJA== Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Casey Schaufler Cc: John Stultz , 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 Hello, Casey. On Tue, Dec 13, 2016 at 10:32:14AM -0800, Casey Schaufler wrote: > > The trouble is that CAP_SYS_NICE or _RESOURCE (which was tried in an > > earlier version of this patch) aren't necessarily appropriate for > > non-android systems. See Andy's objection here: > > https://lkml.org/lkml/2016/11/8/946 > > Then we need to see what those as-yet-unimplemented systems > require and how to address them. I don't think that taking > the "someone might want it" approach is really appropriate. I understands that there can be reservations regarding adding a new CAP but this isn't about someone possibly wanting it in the future. It's more about overloading existing CAPs leading to permitting unintended operations. e.g. ppl who've been delegating CAP_SYS_RESOURCES would automatically end up delegating cgroup organization without intending so. Using an existing cap would have been nice but it just doesn't look like we have a good one to overload. Thanks. -- tejun