Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef9e7509 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Merge "debuggerd_handler: remove PR_SET_DUMPABLE check." am: 6fe7045e am: 41e64884

am: 4aed6eaf

Change-Id: I93ee5419163f50296d12f9e12f7c80575b66a254
parents c543ddc2 4aed6eaf
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -297,13 +297,6 @@ static void debuggerd_signal_handler(int signal_number, siginfo_t* info, void*)
  }

  log_signal_summary(signal_number, info);
  if (prctl(PR_GET_DUMPABLE, 0, 0, 0, 0) == 0) {
    // The process has disabled core dumps and PTRACE_ATTACH, and does not want to be dumped.
    __libc_format_log(ANDROID_LOG_INFO, "libc",
                      "Suppressing debuggerd output because prctl(PR_GET_DUMPABLE)==0");
    resend_signal(info, false);
    return;
  }

  if (prctl(PR_GET_NO_NEW_PRIVS, 0, 0, 0, 0) == 1) {
    // The process has NO_NEW_PRIVS enabled, so we can't transition to the crash_dump context.