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
Bastien Le 9 mai 2011 19:37, "Eric Blake" <ebl...@redhat.com> a écrit : On 05/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 +1-801-349-2682 Libvirt virtualization library http://libvirt.org