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

Issue 9700072: dbus: add support for passing file descriptors (Closed)

Created:
8 years, 9 months ago by Sam Leffler
Modified:
8 years, 8 months ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/git/chromium/src@master
Visibility:
Public.

Description

dbus: add support for passing file descriptors Add support for passing file descriptors in messages. BUG=chromium-os:27809 TEST=run unit tests Change-Id: I48e52e52ea1e1a4b96bb0dbec7242337e5871510 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=129801

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : make support conditional; fix unit test #

Patch Set 4 : filter tx/rx of directories; split fd unit tests out and conditionalize for platforms that don't ha… #

Patch Set 5 : add dbus::FileDescriptor per keybuk's request #

Total comments: 42

Patch Set 6 : address review comments #

Patch Set 7 : more review comments #

Patch Set 8 : fix unit test to not run where fd-passing support is missing #

Total comments: 28

Patch Set 9 : more review comments; fill-in unit test #

Total comments: 1

Patch Set 10 : unit test nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -0 lines) Patch
M dbus/dbus.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A dbus/file_descriptor.h View 1 2 3 4 5 6 1 chunk +59 lines, -0 lines 0 comments Download
A dbus/file_descriptor.cc View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M dbus/message.h View 1 2 3 4 5 6 5 chunks +12 lines, -0 lines 0 comments Download
M dbus/message.cc View 1 2 3 4 5 6 7 8 4 chunks +44 lines, -0 lines 0 comments Download
M dbus/message_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +34 lines, -0 lines 0 comments Download
M dbus/values_util.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
Sam Leffler
Still need to resolve portability issues.
8 years, 9 months ago (2012-03-22 19:04:32 UTC) #1
Sam Leffler
ready
8 years, 9 months ago (2012-03-22 22:39:58 UTC) #2
Jorge Lucangeli Obes
On 2012/03/22 22:39:58, Sam Leffler wrote: > ready I'm not completely clear on how this ...
8 years, 9 months ago (2012-03-22 22:44:55 UTC) #3
Sam Leffler
On 2012/03/22 22:44:55, Jorge Lucangeli Obes wrote: > On 2012/03/22 22:39:58, Sam Leffler wrote: > ...
8 years, 9 months ago (2012-03-22 22:49:53 UTC) #4
Jorge Lucangeli Obes
On 2012/03/22 22:49:53, Sam Leffler wrote: > On 2012/03/22 22:44:55, Jorge Lucangeli Obes wrote: > ...
8 years, 9 months ago (2012-03-22 22:57:37 UTC) #5
Sam Leffler
PTAL
8 years, 9 months ago (2012-03-23 17:49:36 UTC) #6
Jorge Lucangeli Obes
lgtm
8 years, 9 months ago (2012-03-23 17:53:34 UTC) #7
keybuk
I'm concerned about the approach of PopFileDescriptor() returning an open file descriptor as an integer, ...
8 years, 9 months ago (2012-03-27 17:23:25 UTC) #8
Sam Leffler
PTAL
8 years, 9 months ago (2012-03-27 22:26:38 UTC) #9
keybuk
http://codereview.chromium.org/9700072/diff/15001/dbus/file_descriptor.cc File dbus/file_descriptor.cc (right): http://codereview.chromium.org/9700072/diff/15001/dbus/file_descriptor.cc#newcode15 dbus/file_descriptor.cc:15: } // namespace dbus nit: two spaces before // ...
8 years, 9 months ago (2012-03-27 22:36:35 UTC) #10
Sam Leffler
http://codereview.chromium.org/9700072/diff/15001/dbus/file_descriptor.cc File dbus/file_descriptor.cc (right): http://codereview.chromium.org/9700072/diff/15001/dbus/file_descriptor.cc#newcode15 dbus/file_descriptor.cc:15: } // namespace dbus copied from object_path; fixed http://codereview.chromium.org/9700072/diff/15001/dbus/message.cc ...
8 years, 9 months ago (2012-03-27 23:20:40 UTC) #11
satorux1
http://codereview.chromium.org/9700072/diff/15001/dbus/file_descriptor.cc File dbus/file_descriptor.cc (right): http://codereview.chromium.org/9700072/diff/15001/dbus/file_descriptor.cc#newcode11 dbus/file_descriptor.cc:11: if (owner_) If we get rid of owner_, this ...
8 years, 9 months ago (2012-03-28 00:32:43 UTC) #12
Sam Leffler
Neutered the unit test for now because (as keybuk pointed out) it was wrong. The ...
8 years, 9 months ago (2012-03-28 17:28:09 UTC) #13
satorux1
http://codereview.chromium.org/9700072/diff/15001/dbus/file_descriptor.h File dbus/file_descriptor.h (right): http://codereview.chromium.org/9700072/diff/15001/dbus/file_descriptor.h#newcode17 dbus/file_descriptor.h:17: // Permit initialization without a value for passing to ...
8 years, 9 months ago (2012-03-28 17:30:16 UTC) #14
satorux1
http://codereview.chromium.org/9700072/diff/15001/dbus/message.cc File dbus/message.cc (right): http://codereview.chromium.org/9700072/diff/15001/dbus/message.cc#newcode205 dbus/message.cc:205: #if defined(DBUS_TYPE_UNIX_FD) On 2012/03/28 17:28:09, Sam Leffler wrote: > ...
8 years, 9 months ago (2012-03-28 17:41:54 UTC) #15
keybuk
http://codereview.chromium.org/9700072/diff/15001/dbus/message.cc File dbus/message.cc (right): http://codereview.chromium.org/9700072/diff/15001/dbus/message.cc#newcode977 dbus/message.cc:977: } it does that now, it might not in ...
8 years, 9 months ago (2012-03-28 17:53:11 UTC) #16
keybuk
http://codereview.chromium.org/9700072/diff/15001/dbus/file_descriptor.h File dbus/file_descriptor.h (right): http://codereview.chromium.org/9700072/diff/15001/dbus/file_descriptor.h#newcode24 dbus/file_descriptor.h:24: // Retrieve value as an int. nit: Retrieves. Also ...
8 years, 9 months ago (2012-03-28 17:57:37 UTC) #17
Sam Leffler
PTAL http://codereview.chromium.org/9700072/diff/15001/dbus/file_descriptor.h File dbus/file_descriptor.h (right): http://codereview.chromium.org/9700072/diff/15001/dbus/file_descriptor.h#newcode17 dbus/file_descriptor.h:17: // Permit initialization without a value for passing ...
8 years, 9 months ago (2012-03-28 19:25:26 UTC) #18
keybuk
http://codereview.chromium.org/9700072/diff/20002/dbus/message_unittest.cc File dbus/message_unittest.cc (right): http://codereview.chromium.org/9700072/diff/20002/dbus/message_unittest.cc#newcode117 dbus/message_unittest.cc:117: // TODO(sleffler) need to fstat each fd to compare ...
8 years, 9 months ago (2012-03-28 20:41:30 UTC) #19
satorux1
http://codereview.chromium.org/9700072/diff/20002/dbus/file_descriptor.h File dbus/file_descriptor.h (right): http://codereview.chromium.org/9700072/diff/20002/dbus/file_descriptor.h#newcode25 dbus/file_descriptor.h:25: // will not automatically close "1" because it is ...
8 years, 9 months ago (2012-03-28 20:49:37 UTC) #20
keybuk
http://codereview.chromium.org/9700072/diff/20002/dbus/message_unittest.cc File dbus/message_unittest.cc (right): http://codereview.chromium.org/9700072/diff/20002/dbus/message_unittest.cc#newcode117 dbus/message_unittest.cc:117: // TODO(sleffler) need to fstat each fd to compare ...
8 years, 9 months ago (2012-03-28 20:56:18 UTC) #21
satorux1
http://codereview.chromium.org/9700072/diff/20002/dbus/message_unittest.cc File dbus/message_unittest.cc (right): http://codereview.chromium.org/9700072/diff/20002/dbus/message_unittest.cc#newcode117 dbus/message_unittest.cc:117: // TODO(sleffler) need to fstat each fd to compare ...
8 years, 9 months ago (2012-03-28 21:09:32 UTC) #22
Jorge Lucangeli Obes
http://codereview.chromium.org/9700072/diff/20002/dbus/message.cc File dbus/message.cc (right): http://codereview.chromium.org/9700072/diff/20002/dbus/message.cc#newcode697 dbus/message.cc:697: if (!ok || info.is_directory) On 2012/03/28 20:49:37, satorux1 wrote: ...
8 years, 9 months ago (2012-03-28 21:33:37 UTC) #23
Sam Leffler
one more time... http://codereview.chromium.org/9700072/diff/20002/dbus/message.cc File dbus/message.cc (right): http://codereview.chromium.org/9700072/diff/20002/dbus/message.cc#newcode206 dbus/message.cc:206: FileDescriptor value; On 2012/03/28 20:49:37, satorux1 ...
8 years, 9 months ago (2012-03-28 22:06:33 UTC) #24
satorux1
LGTM, but please wait for LGTM from keybuk. http://codereview.chromium.org/9700072/diff/20002/dbus/message_unittest.cc File dbus/message_unittest.cc (right): http://codereview.chromium.org/9700072/diff/20002/dbus/message_unittest.cc#newcode117 dbus/message_unittest.cc:117: // ...
8 years, 9 months ago (2012-03-28 22:20:41 UTC) #25
Jorge Lucangeli Obes
lgtm
8 years, 9 months ago (2012-03-28 22:23:29 UTC) #26
keybuk
lgtm
8 years, 9 months ago (2012-03-28 22:32:22 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sleffler@chromium.org/9700072/6015
8 years, 9 months ago (2012-03-28 22:36:47 UTC) #28
commit-bot: I haz the power
Try job failure for 9700072-6015 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-29 01:59:38 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sleffler@chromium.org/9700072/6015
8 years, 9 months ago (2012-03-29 02:33:15 UTC) #30
satorux1
http://codereview.chromium.org/9700072/diff/20002/dbus/file_descriptor.h File dbus/file_descriptor.h (right): http://codereview.chromium.org/9700072/diff/20002/dbus/file_descriptor.h#newcode39 dbus/file_descriptor.h:39: void PutValue(int value) { On 2012/03/28 20:49:37, satorux1 wrote: ...
8 years, 9 months ago (2012-03-29 02:46:48 UTC) #31
Sam Leffler
Sorry, saw your lgtm and thought you'd changed your mind. I find Take/Release to be ...
8 years, 8 months ago (2012-03-29 17:22:08 UTC) #32
satorux1
I thought we generally name method names as actions performed by the object in OOP. ...
8 years, 8 months ago (2012-03-29 17:42:11 UTC) #33
keybuk
On 2012/03/29 17:42:11, satorux1 wrote: > I thought we generally name method names as actions ...
8 years, 8 months ago (2012-03-29 17:56:51 UTC) #34
satorux1
On 2012/03/29 17:56:51, keybuk wrote: > On 2012/03/29 17:42:11, satorux1 wrote: > > I thought ...
8 years, 8 months ago (2012-03-29 18:04:02 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sleffler@chromium.org/9700072/6015
8 years, 8 months ago (2012-03-30 03:16:11 UTC) #36
commit-bot: I haz the power
8 years, 8 months ago (2012-03-30 06:46:21 UTC) #37
Change committed as 129801

Powered by Google App Engine
This is Rietveld 408576698