From 8baf29fb10a91d8a1da4df6e1875ef63a486987f Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 29 Jul 2019 16:43:11 -0700 Subject: [PATCH] Document wokaround for yama ptrace restrictions Fixes: 138580915 Test: m checkbuild Change-Id: Iefee8a914225d465a1feb37690a54423be332841 --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 60d7d5a86..18422eaad 100644 --- a/README.md +++ b/README.md @@ -355,6 +355,18 @@ and then in another terminal: dlv connect :1234 ``` +If you see an error: +``` +Could not attach to pid 593: this could be caused by a kernel +security setting, try writing "0" to /proc/sys/kernel/yama/ptrace_scope +``` +you can temporarily disable +[Yama's ptrace protection](https://www.kernel.org/doc/Documentation/security/Yama.txt) +using: +```bash +sudo sysctl -w kernel.yama.ptrace_scope=0 +``` + ## Contact Email android-building@googlegroups.com (external) for any questions, or see