summaryrefslogtreecommitdiffstats
path: root/chrome/test/page_cycler
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-19 11:25:02 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-19 11:25:02 +0000
commit1fcc9edcf037375d6b5b67fbca1eab3c19a68c33 (patch)
treebf0bd24602579db2eb9d5b38fcb9be96b672b0f7 /chrome/test/page_cycler
parentccaddf9653bd5ddb1ae1426cfa61572385ed717d (diff)
downloadchromium_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/page_cycler')
-rw-r--r--chrome/test/page_cycler/page_cycler_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/test/page_cycler/page_cycler_test.cc b/chrome/test/page_cycler/page_cycler_test.cc
index 31fe4ba..e021563 100644
--- a/chrome/test/page_cycler/page_cycler_test.cc
+++ b/chrome/test/page_cycler/page_cycler_test.cc
@@ -233,7 +233,7 @@ class PageCyclerTest : public UITest {
ChromeProcessList::const_iterator it;
for (it = chrome_processes.begin(); it != chrome_processes.end(); ++it) {
base::ProcessHandle process_handle;
- if (!base::OpenProcessHandle(*it, &process_handle)) {
+ if (!base::OpenPrivilegedProcessHandle(*it, &process_handle)) {
NOTREACHED();
}
@@ -303,7 +303,7 @@ class PageCyclerTest : public UITest {
ChromeProcessList::const_iterator it;
for (it = chrome_processes.begin(); it != chrome_processes.end(); ++it) {
base::ProcessHandle process_handle;
- if (!base::OpenProcessHandle(*it, &process_handle)) {
+ if (!base::OpenPrivilegedProcessHandle(*it, &process_handle)) {
NOTREACHED();
}