commit | 7d1a8690bed2e46c8277a63a671cae2d9483ee27 | [log] [tgz] |
---|---|---|
author | Steve Fung <stevefung@google.com> | Tue Oct 06 16:43:56 2015 -0700 |
committer | Steve Fung <stevefung@google.com> | Wed Oct 07 18:16:53 2015 -0700 |
tree | 84152186c44531f292277c415b4364645cc94d68 | |
parent | a6020bc368e72d3fcfceb362f180de439a4b6deb [diff] |
crash_reporter: Support crashes from arbitrary users In order to read the /proc/<pid> files from non-root users without using CAP_SYS_PTRACE and CAP_DAC_OVERRIDE, use setresuid(..) and setresgid(..) to switch to the process's user to copy off necessary files for generating the breakpad minidump. Bug: 24678424 Change-Id: I4a43583033587441394483ce678c40c4161808b9