[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: openat-proc

From: Eric Blake
Subject: Re: openat-proc
Date: Mon, 09 May 2011 11:36:51 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10

On 05/09/2011 05:49 AM, Bastien ROUCARIES wrote:
> Hi,
> I am trying to modularize openat-proc, in order to create an openat using 
> passfd. I have created a test file for openat-proc, and I 
> think we could a little bit simplify the test of solaris bug, and drop a 
> dependency on same inode.
> Instead of comparing /proc/self inode why not trying to open and stat 
> /../proc fd.
> If the bug is present it will expand to /proc/self/fd//../proc that will not 
> be present and stat will return ENOENT 

How can you guarantee that /proc/self/fd/../proc does not exist?  If fd
is /usr, then it resolves to /usr/../proc which resolves to /proc which
does exist.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]