Re: RE : Re: openat-proc

2011-05-09 Thread Eric Blake
On 05/09/2011 02:34 PM, Eric Blake wrote: > On 05/09/2011 01:10 PM, Eric Blake wrote: >> On 05/09/2011 12:06 PM, Bastien ROUCARIES wrote: >>> Sorry for top post (android) >>> >>> Proposed algo: >>> Ofd=open(/proc,o_search) >>> follow link /proc/self/fd/ofd/../proc >>> If bug will resolve to >>> /pr

Re: RE : Re: openat-proc

2011-05-09 Thread Eric Blake
On 05/09/2011 01:10 PM, Eric Blake wrote: > On 05/09/2011 12:06 PM, Bastien ROUCARIES wrote: >> Sorry for top post (android) >> >> Proposed algo: >> Ofd=open(/proc,o_search) >> follow link /proc/self/fd/ofd/../proc >> If bug will resolve to >> /proc/self/fd/proc that does not exist >> If not bug su

Re: RE : Re: openat-proc

2011-05-09 Thread Eric Blake
On 05/09/2011 12:06 PM, Bastien ROUCARIES wrote: > Sorry for top post (android) > > Proposed algo: > Ofd=open(/proc,o_search) > follow link /proc/self/fd/ofd/../proc > If bug will resolve to > /proc/self/fd/proc that does not exist > If not bug suceed (because we have already opened /proc I still

RE : Re: openat-proc

2011-05-09 Thread Bastien ROUCARIES
09/2011 05:49 AM, Bastien ROUCARIES wrote: > Hi, > > I am trying to modularize openat-proc, i... 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 ebl...@redhat.com

Re: openat-proc

2011-05-09 Thread Eric Blake
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 > depend

openat-proc

2011-05-09 Thread Bastien ROUCARIES
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