92d8b2320a
PR_GET_DUMPABLE is used by an application to indicate whether or
not core dumps / PTRACE_ATTACH should work.
Security sensitive applications often set PR_SET_DUMPABLE to 0 to
disable core dumps, to avoid leaking sensitive memory to persistent
storage. Similarly, they also set PR_SET_DUMPABLE to zero to prevent
PTRACE_ATTACH from working, again to avoid leaking the contents
of sensitive memory.
Honor PR_GET_DUMPABLE when connecting to debuggerd. If an application
has said it doesn't want its memory dumped, then we shouldn't
ask debuggerd to dump memory on its behalf.
FORTIFY_SOURCE tests: Modify the fortify_source tests to set
PR_SET_DUMPABLE=0. This reduces the total runtime of
/data/nativetest/bionic-unit-tests/bionic-unit-tests32 from approx
53 seconds to 25 seconds. There's no need to connect to debuggerd
when running these tests.
Bug: 16513137
(cherry picked from commit
|
||
---|---|---|
.. | ||
arch | ||
tests | ||
Android.mk | ||
debugger.cpp | ||
dlfcn.cpp | ||
linked_list.h | ||
linker_allocator.cpp | ||
linker_allocator.h | ||
linker_debug.h | ||
linker_environ.cpp | ||
linker_environ.h | ||
linker_executable.mk | ||
linker_phdr.cpp | ||
linker_phdr.h | ||
linker.cpp | ||
linker.h | ||
MODULE_LICENSE_APACHE2 | ||
NOTICE | ||
rt.cpp |