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

Issue 10382021: dbus: revamp fd passing for i/o restrictions (Closed)

Created:
8 years, 7 months ago by Sam Leffler
Modified:
8 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

dbus: revamp fd passing support for i/o restrictions Encapsulate file descriptor validity checking and status in the companion FileDescriptor class so callers can do descriptor checking in a context where i/o is allowed. Update the debug daemon client support to validate the pipe descriptors in a worker thread so it is not done on the UI thread. BUG=126142 TEST=new unit tests + collect trace data on chrome os and verify no assert is triggered Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136331

Patch Set 1 #

Total comments: 2

Patch Set 2 : overhaul to fix w/o hacks #

Patch Set 3 : handle GetDebugLogs too #

Total comments: 14

Patch Set 4 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -44 lines) Patch
M chromeos/dbus/debug_daemon_client.cc View 1 2 3 4 chunks +65 lines, -24 lines 0 comments Download
M dbus/file_descriptor.h View 1 2 3 1 chunk +21 lines, -7 lines 0 comments Download
M dbus/file_descriptor.cc View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download
M dbus/message.cc View 1 3 chunks +3 lines, -13 lines 0 comments Download
M dbus/message_unittest.cc View 1 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Sam Leffler
8 years, 7 months ago (2012-05-04 22:20:33 UTC) #1
Jorge Lucangeli Obes
lgtm
8 years, 7 months ago (2012-05-04 22:31:10 UTC) #2
satorux1
If it's not too much work, I think it'd be nicer to fix this problem ...
8 years, 7 months ago (2012-05-04 22:31:22 UTC) #3
Sam Leffler
On 2012/05/04 22:31:22, satorux1 wrote: > If it's not too much work, I think it'd ...
8 years, 7 months ago (2012-05-04 22:38:17 UTC) #4
Sam Leffler
On 2012/05/04 22:38:17, Sam Leffler wrote: > On 2012/05/04 22:31:22, satorux1 wrote: > > If ...
8 years, 7 months ago (2012-05-04 22:45:42 UTC) #5
Sam Leffler
PTAL; no more hacks thanks to satoru's excellent suggestions
8 years, 7 months ago (2012-05-08 17:52:43 UTC) #6
Jorge Lucangeli Obes
lgtm nit: the CL description is outdated now that the solution is conceptually correct and ...
8 years, 7 months ago (2012-05-08 18:42:22 UTC) #7
Sam Leffler
fixed, thank you
8 years, 7 months ago (2012-05-08 18:54:41 UTC) #8
Sam Leffler
Hold off on this cl; just noticed there more to do (fd usage in GetDebugLogs)
8 years, 7 months ago (2012-05-08 19:05:44 UTC) #9
Sam Leffler
PTAL
8 years, 7 months ago (2012-05-08 22:24:04 UTC) #10
satorux1
LGTM, but please change CHECK to DCHECK before checking this in. Other comments are style ...
8 years, 7 months ago (2012-05-09 22:12:09 UTC) #11
Jorge Lucangeli Obes
lgtm
8 years, 7 months ago (2012-05-09 23:08:39 UTC) #12
satorux1
http://codereview.chromium.org/10382021/diff/6007/dbus/file_descriptor.cc File dbus/file_descriptor.cc (right): http://codereview.chromium.org/10382021/diff/6007/dbus/file_descriptor.cc#newcode16 dbus/file_descriptor.cc:16: // Retrieves value as an int without affecting ownership. ...
8 years, 7 months ago (2012-05-10 07:16:56 UTC) #13
Sam Leffler
pushing http://codereview.chromium.org/10382021/diff/6007/chromeos/dbus/debug_daemon_client.cc File chromeos/dbus/debug_daemon_client.cc (right): http://codereview.chromium.org/10382021/diff/6007/chromeos/dbus/debug_daemon_client.cc#newcode157 chromeos/dbus/debug_daemon_client.cc:157: dbus::FileDescriptor *file_descriptor = new dbus::FileDescriptor(file); On 2012/05/09 22:12:09, ...
8 years, 7 months ago (2012-05-10 15:59:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sleffler@chromium.org/10382021/3003
8 years, 7 months ago (2012-05-10 15:59:56 UTC) #15
commit-bot: I haz the power
8 years, 7 months ago (2012-05-10 17:41:15 UTC) #16
Change committed as 136331

Powered by Google App Engine
This is Rietveld 408576698