platform_system_core/debuggerd
Narayan Kamath 922f6b22fc tombstoned: Support java trace dumps.
The changes here involve :
- Creating and opening a new socket to receive trace dump requests on. Having
  different sockets allows us to install different sets of access control rules.

- A minor refactor to allow us to share common pieces of implementation
  between the java and native dumping code. This will also allow us to
  add a unit test for all file / directory related logic.

There are two java trace specific additions here :
- We use SO_PEERCRED instead of trusting the PID written to the seocket
  because requests come in from untrusted processes.
- Java trace dumps are not interceptible.

kJavaTraceDumpsEnabled is set to false for now but the value of the flag
will be flipped in a future change.

Bug: 32064548
Test: Manual; Currently working on a unit_test for CrashType.

Change-Id: I1d62cc7a7035fd500c3e2b831704a2934d725e35
2017-05-18 12:01:14 +00:00
..
client check send_signal result before further dealing 2017-04-06 22:47:00 +08:00
crasher Small debuggerd improvements. 2017-03-02 19:01:20 -08:00
handler debuggerd_handler: use syscall(__NR_get[pt]id) instead of get[pt]id. 2017-05-05 14:58:12 -07:00
include/debuggerd tombstoned: Support java trace dumps. 2017-05-18 12:01:14 +00:00
libdebuggerd libdebuggerd: print the build fingerprint in fallback. 2017-05-08 13:15:19 -07:00
tombstoned tombstoned: Support java trace dumps. 2017-05-18 12:01:14 +00:00
.clang-format Remove extraneous .clang-format files 2017-03-14 14:06:31 -07:00
Android.bp Remove not-used dependency in crash_dump 2017-05-08 15:18:40 -07:00
crash_dump.cpp Remove not-used dependency in crash_dump 2017-05-08 15:18:40 -07:00
debuggerd.cpp Small debuggerd improvements. 2017-03-02 19:01:20 -08:00
debuggerd_test.cpp debuggerd_handler: use syscall(__NR_get[pt]id) instead of get[pt]id. 2017-05-05 14:58:12 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
signal_sender.cpp liblog: use log/log.h when utilizing ALOG macros 2017-01-11 09:31:15 -08:00
tombstoned_client.cpp tombstoned: Support java trace dumps. 2017-05-18 12:01:14 +00:00
util.cpp Move libc_logging to libasync_safe. 2017-05-02 18:38:46 -07:00