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
..
2014-07-02 13:20:47 -07:00
2014-07-11 11:01:30 -07:00
2013-12-03 18:42:41 -08:00
2013-12-03 18:42:41 -08:00
2014-07-02 13:20:47 -07:00
2014-06-24 19:03:31 -07:00
2013-02-01 14:51:19 -08:00
2014-02-24 20:22:11 +00:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-14 10:02:03 -07:00
2014-04-10 20:44:27 -07:00
2014-02-21 16:27:21 +00:00
2014-06-30 12:39:55 -07:00
2013-02-13 14:40:48 -08:00
2014-06-12 13:16:36 -07:00
2014-01-03 14:49:37 -08:00
2014-06-12 13:16:36 -07:00