From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753281Ab1I0TRx (ORCPT ); Tue, 27 Sep 2011 15:17:53 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:40044 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751678Ab1I0TRw (ORCPT ); Tue, 27 Sep 2011 15:17:52 -0400 Date: Tue, 27 Sep 2011 23:16:58 +0400 From: Vasiliy Kulikov To: Christoph Lameter Cc: kernel-hardening@lists.openwall.com, Pekka Enberg , Matt Mackall , linux-mm@kvack.org, Kees Cook , Dave Hansen , Valdis.Kletnieks@vt.edu, Linus Torvalds , David Rientjes , Alan Cox , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] mm: restrict access to slab files under procfs and sysfs Message-ID: <20110927191658.GB4820@albatros> References: <20110927175453.GA3393@albatros> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 27, 2011 at 13:08 -0500, Christoph Lameter wrote: > Possible candidates: > > christoph@oldy:~/n/linux-2.6$ grep proc_create mm/* > mm/swapfile.c: proc_create("swaps", 0, NULL, &proc_swaps_operations); > mm/vmstat.c: proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations); > mm/vmstat.c: proc_create("pagetypeinfo", S_IRUGO, NULL, &pagetypeinfo_file_ops); > mm/vmstat.c: proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations); > mm/vmstat.c: proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations); > > vmstat and zoneinfo in particular give similar information to what is > revealed through the slab proc files. Do you know whether these files are actively used? I don't want to break tools like "free" or "top". In this case we'll have to discover another way to limit this information. Thank you! -- Vasiliy Kulikov http://www.openwall.com - bringing security into open computing environments