| commit | 4841e744c2e148a68c0f592729d55fa41f39c112 | [log] [tgz] |
|---|---|---|
| author | Luis Hector Chavez <lhchavez@google.com> | Wed Dec 27 12:36:02 2017 -0800 |
| committer | Luis Hector Chavez <lhchavez@google.com> | Wed Dec 27 13:19:31 2017 -0800 |
| tree | 403ca0b71cbd5b62869384fd68bd7814a72fb2a6 | |
| parent | 93d344d98cd02d66c3aac8067718be828ea283f9 [diff] |
debuggerd_handler: set PR_SET_PTRACER before running crash_dump.
Set and restore PR_SET_PTRACER when performing a dump, so that when
Android is running on a kernel that has the Yama LSM enabled (and the
value of ptrace_scope is > 0), crash_dump can attach to processes and
print nice, symbolized stack traces.
Bug: 70992745
Test: kill -6 `pidof surfaceflinger` && logcat -d -b crash
# in both sailfish and Chrome OS
Change-Id: If4646442c6000fdcc69cf4ab95fdc71ae74baaaf