commit | 6db7cd78364b168f8b78170937b3ddf239c89a86 | [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 | 7f9d4c97c35bbc5357126731bbb9faad1825c090 [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