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

Issue 5125579611308032: [sql] Allow restricting database to user read access. (Closed)

Created:
7 years, 5 months ago by Scott Hess - ex-Googler
Modified:
7 years, 5 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

[sql] Allow restricting database to user read access. By default POSIX umask is generally 0644. For some databases, it makes sense to restrict access to 0600. Use new setting for password database. BUG=258771 R=gbillock@chromium.org, isherman@chromium.org, jorgelo@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212106

Patch Set 1 #

Patch Set 2 : file_util::PathExists -> base::PathExists #

Total comments: 12

Patch Set 3 : Permissive umask to make sure test tests the change. #

Total comments: 4

Patch Set 4 : comment wordsmithing #

Patch Set 5 : umask scoper isn't necessary for Windows anyhow. #

Total comments: 4

Patch Set 6 : comments about posix-specificness. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -6 lines) Patch
M chrome/browser/password_manager/login_database.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/password_manager/login_database_unittest.cc View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M sql/connection.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M sql/connection.cc View 1 2 2 chunks +25 lines, -0 lines 0 comments Download
M sql/connection_unittest.cc View 1 2 3 4 4 chunks +84 lines, -6 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Scott Hess - ex-Googler
Posting this to you first in case I missed a trick.
7 years, 5 months ago (2013-07-11 20:59:16 UTC) #1
Scott Hess - ex-Googler
Jorge, Justin is apparently too platform-specific to understand complicated things.
7 years, 5 months ago (2013-07-11 21:24:11 UTC) #2
Scott Hess - ex-Googler
On 2013/07/11 21:24:11, shess wrote: > Jorge, Justin is apparently too platform-specific to understand complicated ...
7 years, 5 months ago (2013-07-11 21:28:23 UTC) #3
Jorge Lucangeli Obes
lgtm https://codereview.chromium.org/5125579611308032/diff/5785905063264256/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/5125579611308032/diff/5785905063264256/sql/connection.cc#newcode735 sql/connection.cc:735: DCHECK_NE(file_name, std::string(":memory")); Does ":memory" mean a memory-backed database?
7 years, 5 months ago (2013-07-11 23:00:42 UTC) #4
Scott Hess - ex-Googler
Greg, could you give this a sql/OWNERS type review? Per my comment to Jorge, I ...
7 years, 5 months ago (2013-07-15 20:50:07 UTC) #5
Greg Billock
https://codereview.chromium.org/5125579611308032/diff/5785905063264256/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/5125579611308032/diff/5785905063264256/sql/connection.cc#newcode733 sql/connection.cc:733: #if defined(OS_POSIX) Should this be treated as a DB ...
7 years, 5 months ago (2013-07-15 23:26:06 UTC) #6
Scott Hess - ex-Googler
https://codereview.chromium.org/5125579611308032/diff/5785905063264256/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/5125579611308032/diff/5785905063264256/sql/connection.cc#newcode733 sql/connection.cc:733: #if defined(OS_POSIX) On 2013/07/15 23:26:06, Greg Billock wrote: > ...
7 years, 5 months ago (2013-07-16 18:08:13 UTC) #7
Greg Billock
Can't think of any more wacky edge case situations to ask about. :-) lgtm https://codereview.chromium.org/5125579611308032/diff/17001/sql/connection_unittest.cc ...
7 years, 5 months ago (2013-07-16 20:44:05 UTC) #8
Scott Hess - ex-Googler
Crap. I see that I need another OWNER for login_database. I recognize Ilya's name, so ...
7 years, 5 months ago (2013-07-16 21:03:08 UTC) #9
Ilya Sherman
password_manager changes LGTM % nits https://codereview.chromium.org/5125579611308032/diff/33001/chrome/browser/password_manager/login_database_unittest.cc File chrome/browser/password_manager/login_database_unittest.cc (right): https://codereview.chromium.org/5125579611308032/diff/33001/chrome/browser/password_manager/login_database_unittest.cc#newcode572 chrome/browser/password_manager/login_database_unittest.cc:572: #if defined(OS_POSIX) nit: Mebbe ...
7 years, 5 months ago (2013-07-16 22:35:52 UTC) #10
Scott Hess - ex-Googler
Apologies for the sadness of my comment additions, but my brain feels like it's trying ...
7 years, 5 months ago (2013-07-17 00:25:36 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/5125579611308032/45001
7 years, 5 months ago (2013-07-17 00:33:21 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/5125579611308032/45001
7 years, 5 months ago (2013-07-17 18:08:25 UTC) #13
Scott Hess - ex-Googler
Committed patchset #6 manually as r212106 (presubmit successful).
7 years, 5 months ago (2013-07-17 19:11:07 UTC) #14
Scott Hess - ex-Googler
7 years, 5 months ago (2013-07-17 19:11:47 UTC) #15
Message was sent while issue was closed.
Sheriff note: For some reason, this doesn't seem to be progressing through the
commit-queue, even though trybots and the like seem fine with it.  So landing
manually, I'll be around monitoring.

Powered by Google App Engine
This is Rietveld 408576698