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

Issue 6729012: cryptohome: Add new platform functions (Closed)

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

Description

cryptohome: Add new platform functions This is first in a series of CLs to add opencryptoki initialization to cryptohome. This ones adds new platform functions for 1) changing file/path ownership recursively. 2) creating symlinks. 3) getting group id on a path. 4) executing a binary as a specific effective uid/gid. (Original patchset by fes@chromium.org. This ones fixes some minor bugs and contains documentation fixes.) Change-Id: I424ca11fcb74ca5d3b040dccf0cf82ed8da766cc BUG=chromium-os:12295 TEST=emerge-x86-mario chromeos-base/chromeos-cryptohome Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=6841c9e

Patch Set 1 #

Total comments: 13

Patch Set 2 : . #

Patch Set 3 : msg #

Total comments: 2

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -8 lines) Patch
M mock_platform.h View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M platform.h View 4 chunks +41 lines, -3 lines 0 comments Download
M platform.cc View 1 2 3 7 chunks +120 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
gauravsh
9 years, 9 months ago (2011-03-24 01:41:34 UTC) #1
gauravsh
Updated issue description with a note about the original provenance of the patch.
9 years, 9 months ago (2011-03-24 01:51:28 UTC) #2
Will Drewry
LGTM if setresuid/gid ordering is correct. Thanks for splitting this out. A few comments on ...
9 years, 9 months ago (2011-03-25 21:02:08 UTC) #3
gauravsh
PTAL. http://codereview.chromium.org/6729012/diff/1/platform.cc File platform.cc (right): http://codereview.chromium.org/6729012/diff/1/platform.cc#newcode365 platform.cc:365: file_util::FileEnumerator::DIRECTORIES); On 2011/03/25 21:02:09, Will Drewry wrote: > ...
9 years, 9 months ago (2011-03-25 23:30:46 UTC) #4
Will Drewry
LGTM with an optional log message clean up. thanks! http://codereview.chromium.org/6729012/diff/3002/platform.cc File platform.cc (right): http://codereview.chromium.org/6729012/diff/3002/platform.cc#newcode490 platform.cc:490: ...
9 years, 9 months ago (2011-03-26 01:06:05 UTC) #5
gauravsh
9 years, 9 months ago (2011-03-26 23:38:40 UTC) #6
http://codereview.chromium.org/6729012/diff/3002/platform.cc
File platform.cc (right):

http://codereview.chromium.org/6729012/diff/3002/platform.cc#newcode490
platform.cc:490: PLOG(ERROR) << "Couldn't spawn a subprocess for command
execution.";
On 2011/03/26 01:06:05, Will Drewry wrote:
> We might also see this if the exit status is non-zero.  Not sure if it's worth
> clarifying or just making this more generic and adding a note when the
> WEXITSTATUS(status) is non-zero (and emitting it).  Your call!

I added another PLOG in the inner if-block (where the status gets checked) and
moved this PLOG to an else{} block.

Powered by Google App Engine
This is Rietveld 408576698