From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752429AbcFWXqS (ORCPT ); Thu, 23 Jun 2016 19:46:18 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51454 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957AbcFWXqQ (ORCPT ); Thu, 23 Jun 2016 19:46:16 -0400 Date: Thu, 23 Jun 2016 16:46:14 -0700 From: Andrew Morton To: Topi Miettinen Cc: linux-kernel@vger.kernel.org, luto@kernel.org, serge@hallyn.com, keescook@chromium.org, Jonathan Corbet , Tejun Heo , Li Zefan , Johannes Weiner , Serge Hallyn , James Morris , David Howells , David Woodhouse , Ard Biesheuvel , "Paul E. McKenney" , Petr Mladek , linux-doc@vger.kernel.org (open list:DOCUMENTATION), cgroups@vger.kernel.org (open list:CONTROL GROUP (CGROUP)), linux-security-module@vger.kernel.org (open list:CAPABILITIES) Subject: Re: [PATCH] capabilities: add capability cgroup controller Message-Id: <20160623164614.cc871a52402fca6179bef246@linux-foundation.org> In-Reply-To: <1466694434-1420-1-git-send-email-toiwoton@gmail.com> References: <1466694434-1420-1-git-send-email-toiwoton@gmail.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Jun 2016 18:07:10 +0300 Topi Miettinen wrote: > There are many basic ways to control processes, including capabilities, > cgroups and resource limits. However, there are far fewer ways to find > out useful values for the limits, except blind trial and error. > > Currently, there is no way to know which capabilities are actually used. > Even the source code is only implicit, in-depth knowledge of each > capability must be used when analyzing a program to judge which > capabilities the program will exercise. > > Add a new cgroup controller for monitoring of capabilities > in the cgroup. I'm having trouble understanding how valuable this feature is to our users, and that's a rather important thing! Perhaps it would help if you were to explain your motivation: particular use cases which benefited from this, for example.