[NaCl SDK] Map active fds to absolute paths.
This implements both fchdir and adds an absolute path to the Descriptor_t struct. Typically on Linux systems this information can be obtained by querying the /proc file system, but in absence of that, we can track it ourselves. For pipes and sockets, the path is the empty string. By enabling this behavior, fchdir can also be implemented. This also returns expected errno values from fchdir. This opens up the ability to do relative path operations like openat. While these currently can be executed in user code in a race condition prone way, they could be moved into the KernelProxy, where the absolute paths can be both accessed and resolved with AcquireHandleAndPath. R=binji@chromium.org, sbc@chromium.org BUG= Review URL: https://codereview.chromium.org/99203014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244267 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment