Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Issue 125260: Don't grant unnecessary handle privileges in OpenProcessHandle. (Closed)

Created:
11 years, 6 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
Reviewers:
cpu_(ooo_6.6-7.5), jam
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Don't grant unnecessary handle privileges in OpenProcessHandle. This patch makes it harder for process handles with more privileges to leak to untrusted places. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18802

Patch Set 1 #

Patch Set 2 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -9 lines) Patch
M base/process_util_win.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/test/chrome_process_util.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/memory_test/memory_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/page_cycler/page_cycler_test.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Paweł Hajdan Jr.
Please review: cpu: security jam: some plugin stuff uses OpenProcessHandle... This patch passes on trybot, ...
11 years, 6 months ago (2009-06-17 16:25:26 UTC) #1
jam
I'm not sure how this helps anything, since the only calls to it are in ...
11 years, 6 months ago (2009-06-17 17:04:57 UTC) #2
cpu_(ooo_6.6-7.5)
I like it. I don't know if it helps today but it is a good ...
11 years, 6 months ago (2009-06-17 17:25:56 UTC) #3
Paweł Hajdan Jr.
Patch updated. JAM, does it look ok now?
11 years, 6 months ago (2009-06-18 15:44:20 UTC) #4
jam
On 2009/06/18 15:44:20, Paweł Hajdan Jr. wrote: > Patch updated. JAM, does it look ok ...
11 years, 6 months ago (2009-06-18 18:40:20 UTC) #5
Paweł Hajdan Jr.
On 2009/06/18 18:40:20, John Abd-El-Malek wrote: > On 2009/06/18 15:44:20, Paweł Hajdan Jr. wrote: > ...
11 years, 6 months ago (2009-06-18 20:28:04 UTC) #6
jam
11 years, 6 months ago (2009-06-18 20:36:30 UTC) #7
On 2009/06/18 20:28:04, Paweł Hajdan Jr. wrote:
> On 2009/06/18 18:40:20, John Abd-El-Malek wrote:
> > On 2009/06/18 15:44:20, Paweł Hajdan Jr. wrote:
> > > Patch updated. JAM, does it look ok now?
> > 
> > While I agree in general about only opening handles with the required
> privilege
> > (hey, who wouldn't!), my issue with the change is that having
> OpenProcessHandle
> > and OpenPrivilegedProcessHandle with the only difference is that the latter
> can
> > wait on the handle and query process information is a bit misleading to
> someone
> > looking at headers/function names.
> 
> Hm, I don't have better idea for this function name (if you have, I'll gladly
> use it). Please also note that "privileged" handle gets PROCESS_VM_READ, which
> may be quite sensitive.
> 
> I could also move OpenPrivilegedProcessHandle to
chrome/test/chrome_process_util
> and update comments in base/ . What do you think about that?

I don't feel that strongly about it to make you move that code around, so you
can check in as is.

Powered by Google App Engine
This is Rietveld 408576698