crash_dump: remove unneeded/faulty checks.
We already check our /proc/`getppid()` fd every time we attach a thread, so these were unneeded at best. The one that happened after dropping capabilities was actively wrong, though, because /proc/pid access checks happen on every operation. (only on some kernels?) Also, add a check that getppid() doesn't change after opening /proc/getppid(). Bug: http://b/35241370 Test: debuggerd -b `pidof com.android.bluetooth` Change-Id: I807439d8c2afd027f3c382face50167a8a7946c4
Loading
Please register or sign in to comment