platform_bionic/linker
Nick Kralevich be0e43b776 debuggerd: if PR_GET_DUMPABLE=0, don't ask for dumping
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
Change-Id: Idc7857b089f3545758f4d9b436b783d580fb653f
2014-07-23 15:48:49 -07:00
..
arch Remove __CTOR_LIST__ from mips/mips64. 2014-07-09 09:20:17 -07:00
tests Native tests are now multilib=both by default 2014-07-01 15:38:22 -07:00
Android.mk [MIPS64] linker64 requires startup code 2014-06-12 19:18:12 -07:00
debugger.cpp debuggerd: if PR_GET_DUMPABLE=0, don't ask for dumping 2014-07-23 15:48:49 -07:00
dlfcn.cpp Add support for protected local symbol lookup. 2014-07-01 10:25:54 -07:00
linked_list.h Turn on -Wunused and fix the mistakes it uncovers. 2014-06-03 15:22:34 -07:00
linker.cpp Change android_dlextinfo flags to uint64_t 2014-07-08 11:24:03 -07:00
linker.h Add support for protected local symbol lookup. 2014-07-01 10:25:54 -07:00
linker_allocator.cpp Improve detection of already loaded libraries 2014-05-14 15:16:35 -07:00
linker_allocator.h Improve detection of already loaded libraries 2014-05-14 15:16:35 -07:00
linker_debug.h Switch to g_ for globals. 2014-05-14 10:02:03 -07:00
linker_environ.cpp Fix x86_64 build, clean up intermediate libraries. 2013-10-09 16:00:17 -07:00
linker_environ.h Fix Clang warning since KernelArgumentBlock is actually a class. 2013-10-08 00:08:13 -07:00
linker_executable.mk build linker and linker64 on 64-bit architectures 2014-02-13 11:18:47 -08:00
linker_phdr.cpp Use VDSO for clock_gettime(2) and gettimeofday(2). 2014-07-16 14:27:43 -07:00
linker_phdr.h Allow sharing the RELRO section via a file. 2014-04-17 14:30:46 +01:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
NOTICE Fix a couple of bugs in generate-NOTICE and regenerate the NOTICE files. 2014-07-22 21:29:00 -07:00
rt.cpp More dynamic linker cleanup. 2012-10-30 16:35:38 -07:00