commit | 3a366608bdd45db720827a5a9f4871f665ad454f | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Wed Jan 13 17:57:14 2016 -0800 |
committer | Josh Gao <jmgao@google.com> | Thu Jan 14 15:06:37 2016 -0800 |
tree | d9d7660fe4e280ee2fb395ae3300cb2860ac04dc | |
parent | 9d4eb5fbecc2357092deab75638b3233a11c3672 [diff] |
debuggerd: fix several bugs caused by fork/setuid change. Previously, we weren't PTRACE_ATTACHing to all of the threads of a process, and we were also trying to do it after forking and dropping privileges. This patch ensures that all ptrace attaching/detaching happens in one place, before forking/exiting respectively. Bug: http://b/26443860 Bug: http://b/26436605 Bug: http://b/26436486 Change-Id: Id94e0c1d9d56c051d0dd281d895aaa3285079198