Dmitriy Ivanov cf92738fa5 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
2015-10-14 11:15:45 -07:00
..
2014-07-28 21:03:17 -07:00
2015-05-15 07:48:33 -07:00
2015-06-29 14:48:25 -07:00
2015-04-16 17:57:30 -07:00
2015-01-09 14:57:53 -08:00
2015-06-29 14:48:25 -07:00
2012-10-30 16:35:38 -07:00