Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Issue 9150051: Setup permissions for terminalPrivateApi. (Closed)

Created:
8 years, 11 months ago by tbarzic
Modified:
8 years, 11 months ago
CC:
chromium-reviews, mihaip+watch_chromium.org
Visibility:
Public.

Description

Setup permissions for terminalPrivateApi. Access to terminalPrivateApi will be allowed to component and hterm extensions only. Hterm extension is not component extension, so restricting access to component extensions only won't work. (Hterm already has access to webSocketPrivate API, and extension ID are copied from there) Also, add "exit" to allowed process output event types (this event will be dispatched when we detect a observed process has died). BUG=chromium-os:23273 TEST=ExtensionTerminalPrivateApiTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=118967

Patch Set 1 #

Patch Set 2 : some spelling errors + year update #

Patch Set 3 : fix unittest #

Total comments: 2

Patch Set 4 : mihai #

Total comments: 2

Patch Set 5 : aa #

Patch Set 6 : missing bool #

Patch Set 7 : compile error #

Total comments: 7

Patch Set 8 : jon #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -23 lines) Patch
M chrome/browser/extensions/api/terminal/terminal_private_api.h View 1 2 3 4 5 6 3 chunks +20 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/terminal/terminal_private_api.cc View 1 2 3 4 5 6 7 8 chunks +56 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/terminal/terminal_private_apitest.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_event_names.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_event_names.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_permission_set.cc View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/common/extensions/extension_permission_set_unittest.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/terminal/no_permission/manifest.json View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/terminal/no_permission/test.js View 1 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
tbarzic
Hi Aaron, Can you take a look at this? Toni
8 years, 11 months ago (2012-01-20 18:24:45 UTC) #1
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/9150051/diff/10/chrome/test/data/extensions/api_test/terminal/no_permission/manifest.json File chrome/test/data/extensions/api_test/terminal/no_permission/manifest.json (right): https://chromiumcodereview.appspot.com/9150051/diff/10/chrome/test/data/extensions/api_test/terminal/no_permission/manifest.json#newcode6 chrome/test/data/extensions/api_test/terminal/no_permission/manifest.json:6: "page": "background.html" This can be "scripts": ["background.js"] so that ...
8 years, 11 months ago (2012-01-21 00:11:17 UTC) #2
tbarzic
https://chromiumcodereview.appspot.com/9150051/diff/10/chrome/test/data/extensions/api_test/terminal/no_permission/manifest.json File chrome/test/data/extensions/api_test/terminal/no_permission/manifest.json (right): https://chromiumcodereview.appspot.com/9150051/diff/10/chrome/test/data/extensions/api_test/terminal/no_permission/manifest.json#newcode6 chrome/test/data/extensions/api_test/terminal/no_permission/manifest.json:6: "page": "background.html" On 2012/01/21 00:11:17, Mihai Parparita wrote: > ...
8 years, 11 months ago (2012-01-21 00:23:35 UTC) #3
Aaron Boodman
+jstritar We need to formalize the concept of api-only-available-to-whitelist-of-extensions and put it in ExtensionPermissionSet or ...
8 years, 11 months ago (2012-01-24 18:46:36 UTC) #4
Aaron Boodman
8 years, 11 months ago (2012-01-24 18:46:47 UTC) #5
tbarzic
http://codereview.chromium.org/9150051/diff/11001/chrome/browser/extensions/api/terminal/terminal_private_api.cc File chrome/browser/extensions/api/terminal/terminal_private_api.cc (right): http://codereview.chromium.org/9150051/diff/11001/chrome/browser/extensions/api/terminal/terminal_private_api.cc#newcode185 chrome/browser/extensions/api/terminal/terminal_private_api.cc:185: if (!AllowAccessToExtension(profile_, extension_id())) { On 2012/01/24 18:46:36, Aaron Boodman ...
8 years, 11 months ago (2012-01-24 19:03:24 UTC) #6
Aaron Boodman
I think we should figure out the proper way to do these kinds of whitelisted ...
8 years, 11 months ago (2012-01-24 19:29:13 UTC) #7
jstritar
Yeah, it seems like most permissions require more whitelisting than just component / not component. ...
8 years, 11 months ago (2012-01-24 20:06:26 UTC) #8
jstritar
I'll handle centralizing the permission whitelists in a follow up CL. Here are some comments ...
8 years, 11 months ago (2012-01-24 21:39:56 UTC) #9
Aaron Boodman
LGTM once Jon is happy. - a On Tue, Jan 24, 2012 at 11:29 AM, ...
8 years, 11 months ago (2012-01-24 21:42:40 UTC) #10
tbarzic
http://codereview.chromium.org/9150051/diff/20001/chrome/browser/extensions/api/terminal/terminal_private_api.cc File chrome/browser/extensions/api/terminal/terminal_private_api.cc (right): http://codereview.chromium.org/9150051/diff/20001/chrome/browser/extensions/api/terminal/terminal_private_api.cc#newcode78 chrome/browser/extensions/api/terminal/terminal_private_api.cc:78: return; On 2012/01/24 21:39:56, jstritar wrote: > How about ...
8 years, 11 months ago (2012-01-24 22:04:48 UTC) #11
jstritar
8 years, 11 months ago (2012-01-24 22:07:19 UTC) #12
LGTM

Powered by Google App Engine
This is Rietveld 408576698