Explain /dev/socket/heapprofd SELinux domain issue.
Bug: 134692887
Change-Id: I699c3b5b04ecb183e9b4b31a3fdd82607b3e0838
diff --git a/docs/heapprofd.md b/docs/heapprofd.md
index 9da7d42..f9d157c 100644
--- a/docs/heapprofd.md
+++ b/docs/heapprofd.md
@@ -178,6 +178,11 @@
## Known Issues
* Does not work on x86 platforms (including the Android cuttlefish emulator).
+* If heapprofd is run standalone (by running `heapprofd` in a root shell, rather
+ than through init), `/dev/socket/heapprofd` get assigned an incorrect SELinux
+ domain. You will not be able to profile any processes unless you disable
+ SELinux enforcement.
+ Run `restorecon /dev/socket/heapprofd` in a root shell to resolve.
## Ways to count memory