From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755029Ab1HYRkB (ORCPT ); Thu, 25 Aug 2011 13:40:01 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:49442 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754981Ab1HYRj6 (ORCPT ); Thu, 25 Aug 2011 13:39:58 -0400 Date: Thu, 25 Aug 2011 21:39:53 +0400 From: Cyrill Gorcunov To: Vasiliy Kulikov Cc: Nathan Lynch , Oren Laadan , Daniel Lezcano , Tejun Heo , Andrew Morton , Pavel Emelyanov , linux-kernel@vger.kernel.org, James Bottomley , LINUXFS-ML , containers@lists.osdl.org, Zan Lynx , Andi Kleen Subject: Re: [RFC] fs, proc: Introduce the /proc//map_files/ directory v2 Message-ID: <20110825173953.GE6387@sun> References: <20110824085329.GL29452@sun> <20110824111806.GA7191@albatros> <20110825082944.GH10030@sun> <20110825173642.GA3288@albatros> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110825173642.GA3288@albatros> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 25, 2011 at 09:36:42PM +0400, Vasiliy Kulikov wrote: ... > > + > > + result = ERR_PTR(-EPERM); > > + if (!ptrace_may_access(task, PTRACE_MODE_READ)); > > + goto out_no_mm; > > Probably > > result = ERR_PTR(-ENOENT); > > belongs here? > Don't think so, it should point that permission failed rather no such entry. Or this might break some tools? Cyrill