From ac91b0c4526e252325ebe613f553812d1cfedf7e Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Wed, 1 Feb 2017 12:15:22 -0800 Subject: [PATCH] Revert "Give crash_dump CAP_SYS_PTRACE." This reverts commit 36397cb1684d52b5a58612a9042884f975a4e12a. Bug: http://b/34853272 Test: debuggerd -b `pidof system_server` Test: debuggerd -b `pidof zygote` Change-Id: Ibccbccd956779f268d498a52aa737c1959538831 --- libcutils/fs_config.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libcutils/fs_config.c b/libcutils/fs_config.c index 013999a95..b701bbaae 100644 --- a/libcutils/fs_config.c +++ b/libcutils/fs_config.c @@ -177,11 +177,8 @@ static const struct fs_path_config android_files[] = { CAP_MASK_LONG(CAP_SETPCAP), "system/bin/webview_zygote64" }, - { 00755, AID_ROOT, AID_SHELL, CAP_MASK_LONG(CAP_SYS_PTRACE), - "system/bin/crash_dump32" }, - { 00755, AID_ROOT, AID_SHELL, CAP_MASK_LONG(CAP_SYS_PTRACE), - "system/bin/crash_dump64" }, - + { 00755, AID_ROOT, AID_SHELL, 0, "system/bin/crash_dump32" }, + { 00755, AID_ROOT, AID_SHELL, 0, "system/bin/crash_dump64" }, { 00755, AID_ROOT, AID_SHELL, 0, "system/bin/debuggerd" }, { 00750, AID_ROOT, AID_ROOT, 0, "system/bin/uncrypt" }, { 00750, AID_ROOT, AID_ROOT, 0, "system/bin/install-recovery.sh" },