Mark Mentovai 49d7fdba9a Add DropPrivileges().
DropPrivileges() is used in exception_port_tool, so that when it is
installed as a setuid executable, it only uses elevated privileges to
obtain a task port for its -p option, and then relinquishes those
privileges.

It is difficult to provide a test for this function, because it must be
running setuid or setgid in order to do anything interesting. However,
the function contains its own CHECKs to verify that it behaves properly.

R=rsesek@chromium.org

Review URL: https://codereview.chromium.org/727053002
2014-11-14 18:44:19 -05:00
2014-07-30 23:24:58 -04:00
2014-09-12 12:13:27 -04:00
2014-11-14 18:44:19 -05:00
2014-11-14 18:44:19 -05:00
2014-07-30 23:24:58 -04:00
2014-07-30 23:24:58 -04:00
2014-07-30 23:24:58 -04:00
2014-07-30 23:24:58 -04:00
2014-10-02 17:09:37 -04:00
2014-10-27 15:01:39 -04:00
2014-07-30 23:24:58 -04:00
2014-07-30 23:24:58 -04:00
Description
A crash-reporting system
Apache-2.0
Languages
C++ 92.6%
Objective-C++ 2.5%
C 2%
Python 1.7%
Assembly 0.9%
Other 0.3%