Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752049Ab1FTKoW (ORCPT ); Mon, 20 Jun 2011 06:44:22 -0400 Received: from tundra.namei.org ([65.99.196.166]:52868 "EHLO tundra.namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751344Ab1FTKoV (ORCPT ); Mon, 20 Jun 2011 06:44:21 -0400 Date: Mon, 20 Jun 2011 20:43:57 +1000 (EST) From: James Morris To: Vasiliy Kulikov cc: kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [RFC 2/5 v4] procfs: add hidepid= and gid= mount options In-Reply-To: <20110620103917.GA5230@albatros> Message-ID: References: <20110620103917.GA5230@albatros> User-Agent: Alpine 2.00 (LRH 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1648 Lines: 43 On Mon, 20 Jun 2011, Vasiliy Kulikov wrote: > > Can you provide evidence that this is a useful feature? e.g. examples of > > exploits / techniques which would be _usefully_ hampered or blocked. > > First, most of these files are usefull in sense of statistics gathering > and debugging. There is no reason to provide this information to the > world. > > Second, yes, it blocks one source of information used in timing attacks, > just use reading the counters as more or less precise time measurement > when actual timing measurements are not precise enough. Can you provide concrete examples? > > > hidepid=1 means users may not access any /proc// directories, but their > > > own. Sensitive files like cmdline, io, sched*, status, wchan are now > > > protected against other users. As permission checking done in > > > proc_pid_permission() and files' permissions are left untouched, > > > programs expecting specific files' permissions are not confused. > > > > IMHO such programs are beyond broken and have voided their kernel > > warranty. > > Policykit, Debian's start-stop-daemon, util-linux use /proc/PID's uid. > procps use both /proc/PID's uid and gid. Are all of them totally broken? If they depend on specific permissions, yes. To access the information, why not just create a group with Unix read access to these files? - James -- James Morris -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/