diff options
author | Narayan Kamath <narayan@google.com> | 2017-05-15 15:59:30 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2017-05-18 12:01:14 +0000 |
commit | 922f6b22fc4d53f614739d3cd43f5d703e713dc2 (patch) | |
tree | 054c6be89ed2a68509a1368a5e0e7bafa22b9978 /libcutils/socket_local_server_unix.cpp | |
parent | 9397adabd8edebbc5ba4924d598b4e94e1e9c1c8 (diff) |
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
Diffstat (limited to 'libcutils/socket_local_server_unix.cpp')
0 files changed, 0 insertions, 0 deletions