From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754199Ab1IMOO3 (ORCPT ); Tue, 13 Sep 2011 10:14:29 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:37002 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754005Ab1IMOO0 (ORCPT ); Tue, 13 Sep 2011 10:14:26 -0400 Date: Tue, 13 Sep 2011 16:14:14 +0200 From: Pavel Machek To: Cyrill Gorcunov Cc: Nathan Lynch , Oren Laadan , Daniel Lezcano , Tejun Heo , Andrew Morton , Glauber Costa , containers@lists.osdl.org, linux-kernel@vger.kernel.org, Pavel Emelyanov , Serge Hallyn , LINUXFS-ML , James Bottomley Subject: Re: [RFC] fs, proc: Introduce the /proc//map_files/ directory v2 Message-ID: <20110913141412.GB7604@ucw.cz> References: <20110824085329.GL29452@sun> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110824085329.GL29452@sun> 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 Hi! > This one behaves similarly to the /proc//fd/ one - it contains symlinks > one for each mapping with file, the name of a symlink is vma->vm_start, the > target is the file. Opening a symlink results in a file that point exactly > to the same inode as them vma's one. Is it good idea security-wise? It looks like symlink but does not behave like one. (And yes, I know we already have similar problems in /proc..) ptrace-may-trace is not good enough protection; I can do this on my own thread to get around read-only protection on fd. (File can be protected from me by directory permissions.) -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html