From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail6.bemta8.messagelabs.com (mail6.bemta8.messagelabs.com [216.82.243.55]) by kanga.kvack.org (Postfix) with ESMTP id 6A0D49000BD for ; Wed, 28 Sep 2011 16:44:24 -0400 (EDT) Date: Wed, 28 Sep 2011 21:52:35 +0100 From: Alan Cox Subject: Re: [PATCH 2/2] mm: restrict access to /proc/meminfo Message-ID: <20110928215235.05d4f2e5@bob.linux.org.uk> In-Reply-To: <1317241905.16137.516.camel@nimitz> References: <20110927175453.GA3393@albatros> <20110927175642.GA3432@albatros> <20110927193810.GA5416@albatros> <1317241905.16137.516.camel@nimitz> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Dave Hansen Cc: Christoph Lameter , David Rientjes , Vasiliy Kulikov , kernel-hardening@lists.openwall.com, Pekka Enberg , Matt Mackall , Andrew Morton , linux-mm@kvack.org, Kees Cook , Valdis.Kletnieks@vt.edu, Linus Torvalds , linux-kernel@vger.kernel.org On Wed, 28 Sep 2011 13:31:45 -0700 Dave Hansen wrote: > On Tue, 2011-09-27 at 15:47 -0500, Christoph Lameter wrote: > > On Tue, 27 Sep 2011, David Rientjes wrote: > > > It'll turn into another one of our infinite number of > > > capabilities. Does anything actually care about statistics at KB > > > granularity these days? > > > > Changing that to MB may also break things. It may be better to have > > consistent system for access control to memory management counters > > that are not related to a process. > > We could also just _effectively_ make it output in MB: > > foo = foo & ~(1<<20) I do not think that does what you intend 8) I do like the idea - it avoids any interfaces vanishing and surprise breakages while only CAP_SYS_whatever needs the real numbers -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org