From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751859Ab1IVCXN (ORCPT ); Wed, 21 Sep 2011 22:23:13 -0400 Received: from lennier.cc.vt.edu ([198.82.162.213]:35414 "EHLO lennier.cc.vt.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876Ab1IVCXI (ORCPT ); Wed, 21 Sep 2011 22:23:08 -0400 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3-dev To: Vasiliy Kulikov Cc: Alan Cox , Pekka Enberg , Andrew Morton , kernel-hardening@lists.openwall.com, Kees Cook , Cyrill Gorcunov , Al Viro , Christoph Lameter , Matt Mackall , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Dan Rosenberg , Theodore Tso , Jesper Juhl , Linus Torvalds , Greg KH , Peter Zijlstra , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo Subject: Re: [kernel-hardening] Re: [RFC PATCH 2/2] mm: restrict access to /proc/slabinfo In-Reply-To: Your message of "Wed, 21 Sep 2011 21:05:27 +0400." <20110921170527.GA15869@albatros> From: Valdis.Kletnieks@vt.edu References: <20110910164001.GA2342@albatros> <20110910164134.GA2442@albatros> <20110914192744.GC4529@outflux.net> <20110918170512.GA2351@albatros> <20110919144657.GA5928@albatros> <14082.1316461507@turing-police.cc.vt.edu> <20110919205541.1c44f1a3@bob.linux.org.uk> <20110921170527.GA15869@albatros> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1316658054_3192P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 21 Sep 2011 22:20:54 -0400 Message-ID: <26246.1316658054@turing-police.cc.vt.edu> X-Mirapoint-Received-SPF: 198.82.161.152 auth3.smtp.vt.edu Valdis.Kletnieks@vt.edu 2 pass X-Junkmail-Status: score=10/50, host=dagger.cc.vt.edu X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A020202.4E7A9B8C.00D5,ss=1,fgs=0, ip=0.0.0.0, so=2010-07-22 22:03:31, dmn=2009-09-10 00:05:08, mode=single engine X-Junkmail-IWF: false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --==_Exmh_1316658054_3192P Content-Type: text/plain; charset=us-ascii On Wed, 21 Sep 2011 21:05:27 +0400, Vasiliy Kulikov said: > Sorry, I've poorly worded my statement. Of course I mean root-only > slabinfo, not totally disable it. Oh, that I can live with.. ;) > Linus, Alan, Kees, and Dave are about to simply restrict slabinfo (and > probably similar interfaces) to root. Pekka is OK too. > > Christoph and Valdis are about to create new CONFIG_ option to be able > to restrict the access to slabinfo/etc., but with old relaxed > permissions. I'm OK with a decision to just make the files mode 400 and be done with it, since I can always stick a chmod in the startup scripts if it's *really* a problem. Just that *if* we add a CONFIG_ option, it shouldn't be slabinfo-specific, but should cover the *other* identified info-leakers in /proc and /sys as well. --==_Exmh_1316658054_3192P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFOepuGcC3lWbTT17ARAsq9AJ9E8yOpWF0HzbRTxIDnYJIKMmiEjQCfd4G5 yzAWYuWP4CsLqZ+6joEb/l8= =yxmF -----END PGP SIGNATURE----- --==_Exmh_1316658054_3192P--