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   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

  • openat-proc Bastien ROUCARIES
    • Re: openat-proc Eric Blake

Reply via email to