922f6b22fc4d53f614739d3cd43f5d703e713dc2 |
|
15-May-2017 |
Narayan Kamath <narayan@google.com> |
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
/system/core/debuggerd/tombstoned/tombstoned.rc
|
0ad5107e51cb71c78a6de02cab2835ba9c1ae61d |
|
24-Jan-2017 |
Josh Gao <jmgao@google.com> |
Actually don't start tombstoned until /data is mounted. Bug: http://b/34461270 Test: boot is actually faster Test: tombstoned still started by init Change-Id: I4976abef108bbb6fad264f9b68cbc1fba711085b
/system/core/debuggerd/tombstoned/tombstoned.rc
|
42a0fed78b761ab06f220786c29f51459265bdec |
|
20-Jan-2017 |
Josh Gao <jmgao@google.com> |
init: don't start tombstoned until /data is mounted. When vold mounts the encrypted /data partition, it first checks for and kills processes that have open fds to the tmpfs placeholder at /data. This resulted in a 20 second boot-time regression (vold's timeout period) when tombstoned was started before vold. Bug: http://b/34461270 Test: boot is faster, no messages from vold in console spew Test: tombstoned still started by init Change-Id: Ib5e9ddb05f40c9da852f00e103861c6ff2d94888
/system/core/debuggerd/tombstoned/tombstoned.rc
|
cbe70cb0a8cb0171f3802273050e851a47b090ed |
|
19-Oct-2016 |
Josh Gao <jmgao@google.com> |
debuggerd: advance our amazing bet. Remove debuggerd in favor of a helper process that gets execed by crashing processes. Bug: http://b/30705528 Test: debuggerd_test Change-Id: I9906c69473989cbf7fe5ea6cccf9a9c563d75906
/system/core/debuggerd/tombstoned/tombstoned.rc
|