Description[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=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244267
Patch Set 1 #
Total comments: 7
Patch Set 2 : Map active fds to absolute paths. #
Total comments: 8
Patch Set 3 : Map active fds to absolute paths. #
Total comments: 5
Patch Set 4 : Add absolute path to Descriptor_t #
Total comments: 5
Patch Set 5 : Modifying path to be pass-by-pointer #Patch Set 6 : Conform to style guide #
Messages
Total messages: 16 (0 generated)
|