commit | 7c89f9e955ddd79312113f83cb4c210a68a940aa | [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 | 047597b3fc345ee657ff1f00ad87521cf4ae455f [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