remoting Linux multi-process: Fix ChromotingHostServices [chromium/src : main]

0 views
Skip to first unread message

Yuwei Huang (Gerrit)

unread,
Mar 30, 2026, 5:14:24 PM (4 days ago) Mar 30
to Joe Downing, chromium...@chromium.org, chromotin...@chromium.org
Attention needed from Joe Downing

Yuwei Huang voted and added 1 comment

Votes added by Yuwei Huang

Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 8 (Latest):
Yuwei Huang . resolved

PTAL thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Joe Downing
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I378d80809d54399739fcc452cbbb94f47bbb0dd2
Gerrit-Change-Number: 7706916
Gerrit-PatchSet: 8
Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
Gerrit-Attention: Joe Downing <joe...@chromium.org>
Gerrit-Comment-Date: Mon, 30 Mar 2026 21:14:16 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Joe Downing (Gerrit)

unread,
Mar 30, 2026, 7:02:18 PM (4 days ago) Mar 30
to Yuwei Huang, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org
Attention needed from Yuwei Huang

Joe Downing voted and added 1 comment

Votes added by Joe Downing

Code-Review+1

1 comment

File remoting/host/chromoting_host_services_server.cc
Line 60, Patchset 9 (Latest): // legacy simngle-process host, the server is run as the login user.
Joe Downing . unresolved

single

Open in Gerrit

Related details

Attention is currently required from:
  • Yuwei Huang
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I378d80809d54399739fcc452cbbb94f47bbb0dd2
    Gerrit-Change-Number: 7706916
    Gerrit-PatchSet: 9
    Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
    Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
    Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
    Gerrit-Attention: Yuwei Huang <yuw...@chromium.org>
    Gerrit-Comment-Date: Mon, 30 Mar 2026 23:02:11 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Yuwei Huang (Gerrit)

    unread,
    Mar 30, 2026, 7:19:28 PM (4 days ago) Mar 30
    to Joe Downing, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org

    Yuwei Huang voted and added 2 comments

    Votes added by Yuwei Huang

    Commit-Queue+2

    2 comments

    Patchset-level comments
    File-level comment, Patchset 10 (Latest):
    Yuwei Huang . resolved

    Thanks!

    File remoting/host/chromoting_host_services_server.cc
    Line 60, Patchset 9: // legacy simngle-process host, the server is run as the login user.
    Joe Downing . resolved

    single

    Yuwei Huang

    Oops! Done :)

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I378d80809d54399739fcc452cbbb94f47bbb0dd2
      Gerrit-Change-Number: 7706916
      Gerrit-PatchSet: 10
      Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
      Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
      Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
      Gerrit-Comment-Date: Mon, 30 Mar 2026 23:19:20 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Joe Downing <joe...@chromium.org>
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Mar 30, 2026, 8:10:04 PM (4 days ago) Mar 30
      to Yuwei Huang, Joe Downing, chromium...@chromium.org, chromotin...@chromium.org

      Chromium LUCI CQ submitted the change with unreviewed changes

      Unreviewed changes

      9 is the latest approved patch-set.
      The change was submitted with unreviewed changes in the following files:

      ```
      The name of the file: remoting/host/chromoting_host_services_server.cc
      Insertions: 1, Deletions: 1.

      @@ -57,7 +57,7 @@
      : ChromotingHostServicesServer(
      #if BUILDFLAG(IS_LINUX)
      // For the multi-process host, the server is run as root; for the
      - // legacy simngle-process host, the server is run as the login user.
      + // legacy single-process host, the server is run as the login user.
      (getuid() == 0) ? GetChromotingHostServicesServerName()
      : GetLegacyChromotingHostServicesServerName(),
      #else
      ```

      Change information

      Commit message:
      remoting Linux multi-process: Fix ChromotingHostServices

      The single-process host uses `chromoting.$USER.host_services_mojo_ipc`
      as the socket name due to multi-user support, but for the multi-process
      host, the socket is created by the daemon process, which is run as
      root, so this doesn't work. This CL fixes this by making the IPC server
      in the daemon process use `chromoting.host_services_mojo_ipc` as the IPC
      name. Since the client doesn't know if the host is single- or
      multi-process, it is updated to try both socket names and see which one
      works.

      This is not done yet. In the next CL, I'll hook
      DaemonProcessLinux::BindChromotingHostServices into
      DesktopSessionFactoryLinux so that a request can be routed to the
      correct user/desktop session.
      Bug: 492619234
      Change-Id: I378d80809d54399739fcc452cbbb94f47bbb0dd2
      Reviewed-by: Joe Downing <joe...@chromium.org>
      Commit-Queue: Yuwei Huang <yuw...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1607491}
      Files:
      • M remoting/host/chromoting_host_services_client.cc
      • M remoting/host/chromoting_host_services_client.h
      • M remoting/host/chromoting_host_services_server.cc
      • M remoting/host/ipc_constants.cc
      • M remoting/host/ipc_constants.h
      Change size: M
      Delta: 5 files changed, 107 insertions(+), 53 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Joe Downing
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I378d80809d54399739fcc452cbbb94f47bbb0dd2
      Gerrit-Change-Number: 7706916
      Gerrit-PatchSet: 11
      Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
      Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages