summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/tests/malloc_hooks_tests.cpp
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2015-10-14 11:15:45 -0700
committerDmitriy Ivanov <dimitry@google.com>2015-10-14 11:15:45 -0700
commitcf92738fa5dee24050028a1235f815f2a0fd33b5 (patch)
treeb574b39df0677ae65ba728200a1cbd5bc261370e /libc/malloc_hooks/tests/malloc_hooks_tests.cpp
parentf32b689d3dbe7a1317bce58d1d9bef9bba173c66 (diff)
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
Diffstat (limited to 'libc/malloc_hooks/tests/malloc_hooks_tests.cpp')
0 files changed, 0 insertions, 0 deletions