Dmitriy Ivanov 4e50d0247b Ensure that readlink has access to /proc/self/fd
/proc/self/fd is not available when PR_DUMPABLE is set to 0
which is default for the user builds. It leads to permission
denials on readlink.

This change fixes the problem by setting PR_DUMPABLE flag to 1
for readlink and restoring it's previous value after the call.

Bug: http://b/24912743
Change-Id: I3fd179c5c6b56af96d6a15ee597024ccb15e1a13
(cherry picked from commit cf92738fa5dee24050028a1235f815f2a0fd33b5)
2015-10-14 18:24:54 -07:00
..
2014-07-28 21:03:17 -07:00
2015-10-12 18:20:26 -07:00
2015-04-16 17:57:30 -07:00
2015-01-09 14:57:53 -08:00
2015-08-28 20:23:52 -07:00
2012-10-30 16:35:38 -07:00