diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-02 00:31:05 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-02 00:31:05 +0000 |
commit | 4b850b8a1757d22d1ca4cb941ef5c90fd4b6149c (patch) | |
tree | 6faa2fd41a280c2bad0ff125ef4250aed1376cd4 /chrome/app/breakpad_linuxish.cc | |
parent | 4b4eccde1f71c7c2b9750ef6566dd49db68c2c52 (diff) | |
download | chromium_src-4b850b8a1757d22d1ca4cb941ef5c90fd4b6149c.zip chromium_src-4b850b8a1757d22d1ca4cb941ef5c90fd4b6149c.tar.gz chromium_src-4b850b8a1757d22d1ca4cb941ef5c90fd4b6149c.tar.bz2 |
Remove ptracer call now that the process tree is no longer broken.
BUG=125225
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10488002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140137 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/breakpad_linuxish.cc')
-rw-r--r-- | chrome/app/breakpad_linuxish.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/chrome/app/breakpad_linuxish.cc b/chrome/app/breakpad_linuxish.cc index 006bb44..19f1d2d 100644 --- a/chrome/app/breakpad_linuxish.cc +++ b/chrome/app/breakpad_linuxish.cc @@ -62,10 +62,6 @@ #define FSTAT_FUNC sys_fstat #endif -#ifndef PR_SET_PTRACER -#define PR_SET_PTRACER 0x59616d61 -#endif - // Some versions of gcc are prone to warn about unused return values. In cases // where we either a) know the call cannot fail, or b) there is nothing we // can do when a call fails, we mark the return code as ignored. This avoids @@ -1026,17 +1022,6 @@ static bool NonBrowserCrashHandler(const void* crash_context, return false; } - // On kernels with ptrace protection, e.g. Ubuntu 10.10+, the browser cannot - // ptrace this crashing process and crash dumping will fail. When using the - // SUID sandbox, this crashing process is likely to be in its own PID - // namespace, and thus there is no way to permit only the browser process to - // ptrace it. - // The workaround is to allow all processes to ptrace this process if we - // reach this point, by passing -1 as the allowed PID. However, support for - // passing -1 as the PID won't reach kernels until around the Ubuntu 12.04 - // timeframe. - sys_prctl(PR_SET_PTRACER, -1); - // Start constructing the message to send to the browser. char guid[kGuidSize + 1] = {0}; char crash_url[kMaxActiveURLSize + 1] = {0}; |