Allow zygote to keep socket to heapprofd.

This allows users to target zygote for heap profiling without
causing it to crash on ForkCommon.

This also allows us to profile zygote in benchmark runs where we want to
profile as many processes as possible.

Bug: 117821125

Test: m
Test: flashed walleye

Change-Id: I3f41b64e0a64e362eafd02cd4e86cb77e434d94c
This commit is contained in:
Florian Mayer
2018-10-16 14:30:02 +01:00
parent 0d63da86e2
commit 6ce2d9966d

View File

@@ -37,6 +37,7 @@ static const char* kPathWhitelist[] = {
"/dev/socket/zygote",
"/dev/socket/zygote_secondary",
"/dev/socket/webview_zygote",
"/dev/socket/heapprofd",
"/sys/kernel/debug/tracing/trace_marker",
"/system/framework/framework-res.apk",
"/dev/urandom",