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

Issue 6820024: [login_manager] Fix race condition that caused ownership to never work (Closed)

Created:
9 years, 8 months ago by Chris Masone
Modified:
9 years, 7 months ago
Reviewers:
gauravsh
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

[login_manager] Fix race condition that caused ownership to never work There's a race to create the user's NSSDB between chrome and the session manager. If the session manager wins, that directory and the files within are owned by root, which is bad. BUG=14008 TEST=unit, and suite_Smoke (incl login_OwnershipTaken) Change-Id: I58080f281408c1f8e3d6692f5759148667a7bdff Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=3667b02

Patch Set 1 #

Patch Set 2 : comment update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -14 lines) Patch
M mock_nss_util.h View 6 chunks +21 lines, -14 lines 0 comments Download
M nss_util.h View 1 chunk +2 lines, -0 lines 0 comments Download
M nss_util.cc View 4 chunks +13 lines, -0 lines 0 comments Download
M session_manager_service.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Chris Masone
PTAL
9 years, 8 months ago (2011-04-09 06:52:05 UTC) #1
gauravsh
How does the addition of MightHaveOwnerKey check fix the race condition - I don't quite ...
9 years, 8 months ago (2011-04-09 18:19:05 UTC) #2
Chris Masone
because, if !MightHaveKeys(), then the session manager doesn't try to OpenUserDB(). The underlying nss wrapper ...
9 years, 8 months ago (2011-04-09 18:29:25 UTC) #3
gauravsh
9 years, 8 months ago (2011-04-09 18:35:02 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698