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

0 views
Skip to first unread message

Yuwei Huang (Gerrit)

unread,
Apr 1, 2026, 10:29:37 PM (2 days ago) Apr 1
to Lambros Lambrou, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org
Attention needed from Lambros Lambrou

Yuwei Huang added 1 comment

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

PTAL thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Lambros Lambrou
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: I1b81ddfcfd6168024329a4c55445eaf22b017f6a
Gerrit-Change-Number: 7723660
Gerrit-PatchSet: 5
Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
Gerrit-Reviewer: Lambros Lambrou <lambros...@chromium.org>
Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
Gerrit-Attention: Lambros Lambrou <lambros...@chromium.org>
Gerrit-Comment-Date: Thu, 02 Apr 2026 02:29:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Lambros Lambrou (Gerrit)

unread,
Apr 2, 2026, 3:34:04 PM (yesterday) Apr 2
to Yuwei Huang, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org
Attention needed from Yuwei Huang

Lambros Lambrou added 2 comments

Commit Message
Line 19, Patchset 6 (Latest): iterate the directory, which is fine as long as all the sensitive
files are not readable by other users.
Lambros Lambrou . unresolved

Please update the CL description to clarify that the network account owns this directory and all the files inside. The description already says that other users cannot read the files, but we should explain that the network process has full access - it can see tokens for all users.

File remoting/host/pairing_registry_delegate_linux.cc
Line 150, Patchset 6 (Latest): return config_dir.Append(kRegistryDirectory);
Lambros Lambrou . unresolved

I was going to suggest `/var/lib/` but I think it's ok to put the private tokens under `/etc/`. There is a precedent for this in `/etc/shadow` which is still used in modern Linux.

Would it make sense for the Debian package to keep this config on uninstall, but delete this config on purge?

I think it's good for the package to not directly manage this directory. Otherwise it would be a "debconf" dir, and users would get pointless questions like "do you want to keep the system config, or apply the package maintainer's version?"

So we should keep this unmanaged, and then we'll need to update the maintainer-scripts to get the proper remove/purge behavior.

This applies to the top-level `/etc/chrome-remote-desktop` directory, so maybe it's better to do this in another CL?

Open in Gerrit

Related details

Attention is currently required from:
  • Yuwei Huang
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • 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: I1b81ddfcfd6168024329a4c55445eaf22b017f6a
    Gerrit-Change-Number: 7723660
    Gerrit-PatchSet: 6
    Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
    Gerrit-Reviewer: Lambros Lambrou <lambros...@chromium.org>
    Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
    Gerrit-Attention: Yuwei Huang <yuw...@chromium.org>
    Gerrit-Comment-Date: Thu, 02 Apr 2026 19:33:55 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Lambros Lambrou (Gerrit)

    unread,
    Apr 2, 2026, 3:34:17 PM (yesterday) Apr 2
    to Yuwei Huang, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org
    Attention needed from Yuwei Huang

    Lambros Lambrou voted Code-Review+1

    Code-Review+1
    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: I1b81ddfcfd6168024329a4c55445eaf22b017f6a
      Gerrit-Change-Number: 7723660
      Gerrit-PatchSet: 6
      Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
      Gerrit-Reviewer: Lambros Lambrou <lambros...@chromium.org>
      Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
      Gerrit-Attention: Yuwei Huang <yuw...@chromium.org>
      Gerrit-Comment-Date: Thu, 02 Apr 2026 19:34:07 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Yuwei Huang (Gerrit)

      unread,
      Apr 2, 2026, 4:35:40 PM (yesterday) Apr 2
      to Lambros Lambrou, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org

      Yuwei Huang voted and added 3 comments

      Votes added by Yuwei Huang

      Commit-Queue+2

      3 comments

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

      Thanks!

      Commit Message
      Line 19, Patchset 6: iterate the directory, which is fine as long as all the sensitive

      files are not readable by other users.
      Lambros Lambrou . resolved

      Please update the CL description to clarify that the network account owns this directory and all the files inside. The description already says that other users cannot read the files, but we should explain that the network process has full access - it can see tokens for all users.

      Yuwei Huang

      I just did `s/other/irrelevant/`.

      #1 is about `/etc/chrome-remote-desktop`, and #2 is about `/etc/chrome-remote-desktop/paired-clients`, and #2 says to change the ownership to the network user, so I don't think there is much confusion.

      File remoting/host/pairing_registry_delegate_linux.cc
      Line 150, Patchset 6: return config_dir.Append(kRegistryDirectory);
      Lambros Lambrou . resolved

      I was going to suggest `/var/lib/` but I think it's ok to put the private tokens under `/etc/`. There is a precedent for this in `/etc/shadow` which is still used in modern Linux.

      Would it make sense for the Debian package to keep this config on uninstall, but delete this config on purge?

      I think it's good for the package to not directly manage this directory. Otherwise it would be a "debconf" dir, and users would get pointless questions like "do you want to keep the system config, or apply the package maintainer's version?"

      So we should keep this unmanaged, and then we'll need to update the maintainer-scripts to get the proper remove/purge behavior.

      This applies to the top-level `/etc/chrome-remote-desktop` directory, so maybe it's better to do this in another CL?

      Yuwei Huang

      Yeah, I thought about using `/var/lib/chrome-remote-desktop`, but that would introduce another location for config management, which is very specific to Linux, and the code would look awkward on other platforms.

      This applies to the top-level `/etc/chrome-remote-desktop` directory, so maybe it's better to do this in another CL?

      Sounds like a good idea. I'll do that in a separate CL.

      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: I1b81ddfcfd6168024329a4c55445eaf22b017f6a
        Gerrit-Change-Number: 7723660
        Gerrit-PatchSet: 7
        Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
        Gerrit-Reviewer: Lambros Lambrou <lambros...@chromium.org>
        Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
        Gerrit-Comment-Date: Thu, 02 Apr 2026 20:35:31 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Lambros Lambrou <lambros...@chromium.org>
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        Apr 2, 2026, 4:40:30 PM (yesterday) Apr 2
        to Yuwei Huang, Lambros Lambrou, chromium...@chromium.org, chromotin...@chromium.org

        Chromium LUCI CQ submitted the change

        Unreviewed changes

        6 is the latest approved patch-set.
        No files were changed between the latest approved patch-set and the submitted one.

        Change information

        Commit message:
        remoting Linux multi-process: Fix pairing

        For the multi-process host, the pairing directory is in
        /etc/chrome-remote-desktop, which is owned by root so the network
        process won't be able to create pairing entries under it.

        This CL fixes this by:

        1. Change the permissions of /etc/chrome-remote-desktop from 700 to 755.
        This is required for the network process to access the
        paired-client/ directory in it. This will no allow modifications of
        files in /etc/chrome-remote-desktop, but will allow any users to

        iterate the directory, which is fine as long as all the sensitive
           files are not readable by irrelevant users.
        2. Make the daemon process create the paired-client/ directory, change
        its ownership to the network user, and set permissions to 700.
        3. Add a check to the daemon process to ensure the host config file is

        not readable by other users.
        Bug: 492265559
        Change-Id: I1b81ddfcfd6168024329a4c55445eaf22b017f6a
        Reviewed-by: Lambros Lambrou <lambros...@chromium.org>
        Commit-Queue: Yuwei Huang <yuw...@chromium.org>
        Cr-Commit-Position: refs/heads/main@{#1609474}
        Files:
        • M remoting/host/daemon_process_linux.cc
        • M remoting/host/linux/daemon_process_main.cc
        • M remoting/host/pairing_registry_delegate_linux.cc
        • M remoting/host/pairing_registry_delegate_linux.h
        • M remoting/host/setup/start_host_as_root.cc
        Change size: M
        Delta: 5 files changed, 94 insertions(+), 17 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Lambros Lambrou
        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: I1b81ddfcfd6168024329a4c55445eaf22b017f6a
        Gerrit-Change-Number: 7723660
        Gerrit-PatchSet: 8
        Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Lambros Lambrou <lambros...@chromium.org>
        Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages