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

Issue 183953004: POSIX: CHECK() that file_util::ScopedFD fulfills promise. (Closed)

Created:
6 years, 9 months ago by jln (very slow on Chromium)
Modified:
6 years, 9 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

POSIX: CHECK() that file_util::ScopedFD fulfills promise. CHECK() that file_util::ScopedFD will actually close the file descriptors. There are security implications to not doing so, and logging an error is not enough: file descriptor are security capabilities. Failing to close them is a failure to revoke access to certain resources, which is heavily relied on in the code base. This CL also adds unit tests to file_util::ScopedFD. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254129

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments. #

Patch Set 3 : Fix IOS compile failure. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -2 lines) Patch
M base/file_util.h View 1 2 chunks +10 lines, -2 lines 0 comments Download
M base/file_util_unittest.cc View 1 2 2 chunks +43 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jln (very slow on Chromium)
Will, do you mind taking a look at this small CL?
6 years, 9 months ago (2014-02-28 01:41:39 UTC) #1
willchan no longer on Chromium
lgtm https://chromiumcodereview.appspot.com/183953004/diff/1/base/file_util.h File base/file_util.h (right): https://chromiumcodereview.appspot.com/183953004/diff/1/base/file_util.h#newcode419 base/file_util.h:419: // There are security implications to not closing ...
6 years, 9 months ago (2014-02-28 01:48:47 UTC) #2
jln (very slow on Chromium)
Thanks Will, all done! https://chromiumcodereview.appspot.com/183953004/diff/1/base/file_util.h File base/file_util.h (right): https://chromiumcodereview.appspot.com/183953004/diff/1/base/file_util.h#newcode419 base/file_util.h:419: // There are security implications ...
6 years, 9 months ago (2014-02-28 02:01:21 UTC) #3
jln (very slow on Chromium)
The CQ bit was checked by jln@chromium.org
6 years, 9 months ago (2014-02-28 06:45:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/183953004/40001
6 years, 9 months ago (2014-02-28 06:46:10 UTC) #5
commit-bot: I haz the power
6 years, 9 months ago (2014-02-28 15:35:37 UTC) #6
Message was sent while issue was closed.
Change committed as 254129

Powered by Google App Engine
This is Rietveld 408576698