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

Issue 907783002: Use pkexec instead of gksudo for adding users to group. (Closed)

Created:
5 years, 10 months ago by rickyz (no longer on Chrome)
Modified:
5 years, 9 months ago
Reviewers:
Sergey Ulanov, Lambros
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use pkexec instead of gksudo for adding users to group. gksudo is deprecated on Ubuntu and unavailable on some other distros. Under this change, linux_me2me_host.py reexecutes itself as root (via sudo or pkexec) to handle adding users to the chrome-remote-desktop group. Unlike gksudo, pkexec does not allow showing the user a custom message without installing a PolicyKit policy. Instead, the user will see a message like: Authentication is needed to run `/opt/google/chrome-remote-desktop/chrome-remote-desktop' as the super user While we may want to add a PolicyKit policy in the future, hopefully this message is sufficiently clear about what triggered the password prompt for now. BUG=342210 Committed: https://crrev.com/51e4d20a8699a245daa4a6548834751aa1339aff Cr-Commit-Position: refs/heads/master@{#320196}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Respond to comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -9 lines) Patch
M remoting/host/installer/linux/debian/control View 1 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/linux/linux_me2me_host.py View 1 4 chunks +39 lines, -8 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
rickyz (no longer on Chrome)
Hey, as I mentioned on crbug.com/343329, I'm looking at making some of the changes needed ...
5 years, 10 months ago (2015-02-09 01:57:27 UTC) #2
Sergey Ulanov
Thanks for working on this! One issue with Polkit is its behavior with non-standard desktop ...
5 years, 10 months ago (2015-02-09 22:00:25 UTC) #3
Lambros
Thanks for doing this work. Do you know if pkexec works correctly in Ubuntu 12.04 ...
5 years, 10 months ago (2015-02-09 23:12:46 UTC) #5
Lambros
On 2015/02/09 23:12:46, Lambros wrote: > Thanks for doing this work. Do you know if ...
5 years, 10 months ago (2015-02-09 23:25:36 UTC) #6
rickyz (no longer on Chrome)
https://codereview.chromium.org/907783002/diff/1/remoting/host/linux/linux_me2me_host.py File remoting/host/linux/linux_me2me_host.py (right): https://codereview.chromium.org/907783002/diff/1/remoting/host/linux/linux_me2me_host.py#newcode1104 remoting/host/linux/linux_me2me_host.py:1104: command = ["/usr/bin/pkexec"] + command On 2015/02/09 22:00:25, Sergey ...
5 years, 10 months ago (2015-02-13 05:03:52 UTC) #8
Sergey Ulanov
Can this be landed now? Is there anything blocking this CL?
5 years, 9 months ago (2015-03-11 23:42:21 UTC) #9
rickyz (no longer on Chrome)
On 2015/03/11 23:42:21, Sergey Ulanov wrote: > Can this be landed now? Is there anything ...
5 years, 9 months ago (2015-03-11 23:55:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/907783002/20001
5 years, 9 months ago (2015-03-11 23:57:36 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-12 01:06:25 UTC) #13
commit-bot: I haz the power
5 years, 9 months ago (2015-03-12 01:07:14 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/51e4d20a8699a245daa4a6548834751aa1339aff
Cr-Commit-Position: refs/heads/master@{#320196}

Powered by Google App Engine
This is Rietveld 408576698