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

Commit 59b8e359 authored by Josh Gao's avatar Josh Gao Committed by Gerrit Code Review
Browse files

Merge "crash_dump: read /proc/<pid>/maps before dropping capabilities."

parents 9df28601 347164cc
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -358,6 +358,11 @@ int main(int argc, char** argv) {
    }
  }

  std::unique_ptr<BacktraceMap> backtrace_map(BacktraceMap::Create(main_tid));
  if (!backtrace_map) {
    LOG(FATAL) << "failed to create backtrace map";
  }

  // Drop our capabilities now that we've attached to the threads we care about.
  drop_capabilities();

@@ -365,7 +370,6 @@ int main(int argc, char** argv) {

  // TODO: Use seccomp to lock ourselves down.

  std::unique_ptr<BacktraceMap> backtrace_map(BacktraceMap::Create(main_tid));
  std::string amfd_data;

  if (backtrace) {