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

Issue 12183017: Verify the signature on user cloud policy downloads. (Closed)

Created:
7 years, 10 months ago by Joao da Silva
Modified:
7 years, 10 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Verify the signature on user cloud policy downloads. The signature on the user cloud policy blob is already verified by the session manager on ChromeOS, but should also be verified by Chrome before storing new policy, and after loading policy from the cache. BUG=174015 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182279

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added tests #

Patch Set 3 : Fixed win build, fixed test linkage #

Patch Set 4 : Fixed win build. again #

Patch Set 5 : Comment #

Total comments: 46

Patch Set 6 : Addressed comments #

Total comments: 4

Patch Set 7 : rebased, addressed latest comments #

Total comments: 10

Patch Set 8 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+678 lines, -181 lines) Patch
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/policy/cloud_policy_browsertest.cc View 1 2 3 4 5 6 7 9 chunks +171 lines, -24 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_store_chromeos.h View 1 2 3 4 5 6 7 6 chunks +45 lines, -12 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_store_chromeos.cc View 1 2 3 4 5 6 7 10 chunks +185 lines, -75 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_store_chromeos_unittest.cc View 1 2 3 4 5 6 7 14 chunks +248 lines, -55 lines 0 comments Download
M chrome/common/chrome_paths.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M net/tools/testserver/device_management.py View 1 2 3 4 5 6 5 chunks +15 lines, -14 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Joao da Silva
Here's user policy signature validation on chromeos. Early comments welcome; automated tests will come after ...
7 years, 10 months ago (2013-02-04 16:11:36 UTC) #1
Mattias Nissler (ping if slow)
Looks reasonable to me https://codereview.chromium.org/12183017/diff/1/chrome/browser/policy/user_cloud_policy_store_chromeos.cc File chrome/browser/policy/user_cloud_policy_store_chromeos.cc (right): https://codereview.chromium.org/12183017/diff/1/chrome/browser/policy/user_cloud_policy_store_chromeos.cc#newcode39 chrome/browser/policy/user_cloud_policy_store_chromeos.cc:39: FILE_PATH_LITERAL("/var/run/user_policy/%s.pub"); can we make user_policy/%s ...
7 years, 10 months ago (2013-02-04 16:44:56 UTC) #2
Joao da Silva
Added a bunch of tests, please have another look. The dbus/ changes are under review ...
7 years, 10 months ago (2013-02-06 00:34:37 UTC) #3
Mattias Nissler (ping if slow)
I need to leave and didn't manage to review the entire patch, but here's my ...
7 years, 10 months ago (2013-02-06 17:58:25 UTC) #4
Mattias Nissler (ping if slow)
https://codereview.chromium.org/12183017/diff/14002/chrome/browser/policy/cloud_policy_browsertest.cc File chrome/browser/policy/cloud_policy_browsertest.cc (right): https://codereview.chromium.org/12183017/diff/14002/chrome/browser/policy/cloud_policy_browsertest.cc#newcode189 chrome/browser/policy/cloud_policy_browsertest.cc:189: testserver_relative_docroot())); any reason not to use an absolute path ...
7 years, 10 months ago (2013-02-07 14:12:07 UTC) #5
Joao da Silva
@Mattias: PTAL @Jochen: please review the changes at chrome/common/ Thanks! https://codereview.chromium.org/12183017/diff/14002/chrome/browser/policy/browser_policy_connector.h File chrome/browser/policy/browser_policy_connector.h (right): https://codereview.chromium.org/12183017/diff/14002/chrome/browser/policy/browser_policy_connector.h#newcode130 ...
7 years, 10 months ago (2013-02-07 16:31:59 UTC) #6
Joao da Silva
@Jochen: please review the changes at chrome/common/, thanks!
7 years, 10 months ago (2013-02-07 16:42:52 UTC) #7
jochen (gone - plz use gerrit)
lgtm
7 years, 10 months ago (2013-02-07 17:13:14 UTC) #8
Mattias Nissler (ping if slow)
Getting close. Regarding writing to the source dir, I'm not really sure what the rules ...
7 years, 10 months ago (2013-02-08 13:36:42 UTC) #9
Joao da Silva
PTAL. Fixing the testserver issue at https://codereview.chromium.org/12210088. https://codereview.chromium.org/12183017/diff/14002/chrome/browser/policy/cloud_policy_browsertest.cc File chrome/browser/policy/cloud_policy_browsertest.cc (right): https://codereview.chromium.org/12183017/diff/14002/chrome/browser/policy/cloud_policy_browsertest.cc#newcode189 chrome/browser/policy/cloud_policy_browsertest.cc:189: testserver_relative_docroot())); On ...
7 years, 10 months ago (2013-02-08 16:47:04 UTC) #10
Mattias Nissler (ping if slow)
LGTM. I'm wondering whether we should land this before the branch point though given that ...
7 years, 10 months ago (2013-02-08 17:06:30 UTC) #11
Joao da Silva
M26 has sailed, so barring any red bots I'll send this to the CQ later ...
7 years, 10 months ago (2013-02-13 16:22:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/12183017/22001
7 years, 10 months ago (2013-02-13 17:52:08 UTC) #13
commit-bot: I haz the power
7 years, 10 months ago (2013-02-13 19:13:35 UTC) #14
Message was sent while issue was closed.
Change committed as 182279

Powered by Google App Engine
This is Rietveld 408576698