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 0B197900137 for ; Tue, 13 Sep 2011 02:29:22 -0400 (EDT) Received: by bkbzs2 with SMTP id zs2so228653bkb.14 for ; Mon, 12 Sep 2011 23:29:19 -0700 (PDT) Date: Tue, 13 Sep 2011 10:28:55 +0400 From: Vasiliy Kulikov Subject: Re: [RFC PATCH 2/2] mm: restrict access to /proc/slabinfo Message-ID: <20110913062855.GA3221@albatros> References: <20110910164001.GA2342@albatros> <20110910164134.GA2442@albatros> <20110912150630.GE25367@sun> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110912150630.GE25367@sun> Sender: owner-linux-mm@kvack.org List-ID: To: Cyrill Gorcunov Cc: kernel-hardening@lists.openwall.com, Andrew Morton , Al Viro , Christoph Lameter , Pekka Enberg , Matt Mackall , linux-kernel@vger.kernel.org, linux-mm@kvack.org On Mon, Sep 12, 2011 at 19:06 +0400, Cyrill Gorcunov wrote: > On Sat, Sep 10, 2011 at 08:41:34PM +0400, Vasiliy Kulikov wrote: > > Historically /proc/slabinfo has 0444 permissions and is accessible to > > the world. slabinfo contains rather private information related both to > > the kernel and userspace tasks. Depending on the situation, it might > > reveal either private information per se or information useful to make > > another targeted attack. Some examples of what can be learned by > > reading/watching for /proc/slabinfo entries: > > > ... > > Since this file is controversy point, probably its permissions might be > configurable via setup option? We could create DEBUG_PROC (of cource, defaults to =n) to keep current relaxed procfs permissions, but I don't think a configure option is needed for a thing which is trivially done via "chmod" in init scripts. -- Vasiliy Kulikov http://www.openwall.com - bringing security into open computing environments -- 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