Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753923AbcJDSDq (ORCPT ); Tue, 4 Oct 2016 14:03:46 -0400 Received: from mail-oi0-f45.google.com ([209.85.218.45]:34358 "EHLO mail-oi0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752340AbcJDSDo (ORCPT ); Tue, 4 Oct 2016 14:03:44 -0400 MIME-Version: 1.0 In-Reply-To: <20161004161630.GC4205@htj.duckdns.org> References: <1475556090-6278-1-git-send-email-john.stultz@linaro.org> <20161004161630.GC4205@htj.duckdns.org> From: John Stultz Date: Tue, 4 Oct 2016 11:03:43 -0700 Message-ID: Subject: Re: [RFC][PATCH 0/2] Another pass at Android style loosening of cgroup attach permissions To: Tejun Heo Cc: lkml , Li Zefan , Jonathan Corbet , cgroups@vger.kernel.org, Android Kernel Team , Rom Lemarchand , Colin Cross , Dmitry Shmidt , Todd Kjos , Christian Poetzsch , Amit Pundir 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: 909 Lines: 19 On Tue, Oct 4, 2016 at 9:16 AM, Tejun Heo wrote: > On Mon, Oct 03, 2016 at 09:41:28PM -0700, John Stultz wrote: >> The migration of a task from the foreground to background, or to >> elevate a task to audio priority, may be done by system service that >> does not run as root. So this patch allows processes with CAP_SYS_NICE >> to be able to migrate tasks between cgroups. I suspect if there was a >> specific cap (CAP_SYS_CHANGE_CGROUP) for this, it would be usable here, >> but in its absence, they've overloaded CAP_SYS_NICE for this use. > > CAP_SYS_RESOURCE won't do? Oh, and I'll have to look into this one to see what CAP_SYS_RESOURCE actually allows. We ran into trouble in the past changing the CAPs required to something higher-level, which then causes trouble because they want to avoid elevating permissions on system tasks and keep them as restricted as possible. thans -john