Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755127AbYACX6O (ORCPT ); Thu, 3 Jan 2008 18:58:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752769AbYACX57 (ORCPT ); Thu, 3 Jan 2008 18:57:59 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:38809 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752862AbYACX56 (ORCPT ); Thu, 3 Jan 2008 18:57:58 -0500 Date: Thu, 3 Jan 2008 23:57:36 +0000 From: Al Viro To: Guillaume Chazarain Cc: Rik van Riel , linux-kernel@vger.kernel.org Subject: Re: [PATCH] proc: advertise new restrictions on /proc/*/maps & /proc/*/smaps Message-ID: <20080103235736.GW27894@ZenIV.linux.org.uk> References: <20080103235150.2870.31703.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080103235150.2870.31703.stgit@localhost.localdomain> User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 647 Lines: 16 On Fri, Jan 04, 2008 at 12:51:50AM +0100, Guillaume Chazarain wrote: > Now that strangers are kept out of /proc//maps, let's welcome them > with -EPERM instead of a blank file. NAK The whole point is that we have to reject it at read() time, not open() time. Checks in open() are a) useless (since conditions can change later) and b) actually broken, since CAP_SYS_PTRACE != CAP_DAC_OVERRIDE -- 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/