diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 11:25:02 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 11:25:02 +0000 |
commit | 1fcc9edcf037375d6b5b67fbca1eab3c19a68c33 (patch) | |
tree | bf0bd24602579db2eb9d5b38fcb9be96b672b0f7 /chrome/test/chrome_process_util.cc | |
parent | ccaddf9653bd5ddb1ae1426cfa61572385ed717d (diff) | |
download | chromium_src-1fcc9edcf037375d6b5b67fbca1eab3c19a68c33.zip chromium_src-1fcc9edcf037375d6b5b67fbca1eab3c19a68c33.tar.gz chromium_src-1fcc9edcf037375d6b5b67fbca1eab3c19a68c33.tar.bz2 |
Don't grant unnecessary handle privileges in OpenProcessHandle.
This patch makes it harder for process handles with more privileges
to leak to untrusted places.
Review URL: http://codereview.chromium.org/125260
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18802 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/chrome_process_util.cc')
-rw-r--r-- | chrome/test/chrome_process_util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/test/chrome_process_util.cc b/chrome/test/chrome_process_util.cc index 8ad6239..c1b6931 100644 --- a/chrome/test/chrome_process_util.cc +++ b/chrome/test/chrome_process_util.cc @@ -29,7 +29,7 @@ void TerminateAllChromeProcesses(const FilePath& data_dir) { base::ProcessHandle handle; // Ignore processes for which we can't open the handle. We don't guarantee // that all processes will terminate, only try to do so. - if (base::OpenProcessHandle(*it, &handle)) + if (base::OpenPrivilegedProcessHandle(*it, &handle)) handles.push_back(handle); } } |