commit | e6c88357094350d6feb90088ef6459ae2049b1fb | [log] [tgz] |
---|---|---|
author | Steve Fung <[email protected]> | Tue Oct 06 16:43:56 2015 -0700 |
committer | Steve Fung <[email protected]> | Wed Oct 07 18:16:53 2015 -0700 |
tree | 951b00d09d9e5ec7637a342ba8d2b85c458f61b6 | |
parent | 4d6eb6fe4530f44120af64e13ea2891072a42757 [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