From: Trond Myklebust Subject: Re: symlinks with permissions Date: Mon, 26 Oct 2009 13:57:49 -0400 Message-ID: <1256579869.8576.7.camel@heimdal.trondhjem.org> References: <20091025062953.GC1391@ucw.cz> <20091026163157.GB7233@duck.suse.cz> <20091026165729.GF23564@us.ibm.com> <20091026173629.GB16861@fieldses.org> <20091026174631.GD7233@duck.suse.cz> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: "J. Bruce Fields" , "Serge E. Hallyn" , Pavel Machek , kernel list , linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, jamie@shareable.org To: Jan Kara Return-path: In-Reply-To: <20091026174631.GD7233@duck.suse.cz> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Mon, 2009-10-26 at 18:46 +0100, Jan Kara wrote: > That's what I'd think as well but it does not as I've just learned and > tested :) proc_pid_follow_link actually directly gives a dentry of the > target file without checking permissions on the way. > > Honza I seem to remember that is deliberate, the point being that a symlink in /proc/*/fd/ may contain a path that refers to a private namespace. Cheers Trond