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

Issue 2374183008: [Android] Run shell commands from the forwarder without passing fds. (Closed)

Created:
4 years, 2 months ago by jbudorick
Modified:
4 years, 2 months ago
Reviewers:
Ted C, agrieve
CC:
chromium-reviews, mikecase+watch_chromium.org, jbudorick+watch_chromium.org, agrieve+watch_chromium.org, sullivan, rnephew (Reviews Here)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Run shell commands from the forwarder without passing fds. The forwarder daemon was running commands with system(). This would give the newly forked process copies of the same file handles held by the daemon, notably including the unix domain socket. If the adb server wasn't already running and the daemon called an adb command, the adb server would be forked from the adb client process with those same file handles -- including the unix domain socket. This would interfere both with shutting down the host forwarder daemon (as we'd see the unix domain socket still held by the adb server) and with subsequent attempts to bring it up (same reason). BUG=634052, 650674 Committed: https://crrev.com/dccd754c3b5cc5be5c809ffd6a9b742053f25c76 Cr-Commit-Position: refs/heads/master@{#422263}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -5 lines) Patch
M tools/android/forwarder2/host_forwarder_main.cc View 3 chunks +19 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
jbudorick
4 years, 2 months ago (2016-09-30 21:07:15 UTC) #2
jbudorick
4 years, 2 months ago (2016-10-01 00:11:58 UTC) #8
Ted C
lgtm
4 years, 2 months ago (2016-10-01 00:45:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2374183008/1
4 years, 2 months ago (2016-10-01 00:51:28 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-01 01:51:43 UTC) #12
commit-bot: I haz the power
4 years, 2 months ago (2016-10-01 01:55:32 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/dccd754c3b5cc5be5c809ffd6a9b742053f25c76
Cr-Commit-Position: refs/heads/master@{#422263}

Powered by Google App Engine
This is Rietveld 408576698