vapier 15/07/24 11:31:15
Added:
chrome-remote-desktop-44.0.2403.44-always-sudo.patch
Log:
Version bump.
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key
D2E96200)
Revision Changes Path
1.1
net-misc/chrome-remote-desktop/files/chrome-remote-desktop-44.0.2403.44-always-sudo.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/chrome-remote-desktop/files/chrome-remote-desktop-44.0.2403.44-always-sudo.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/chrome-remote-desktop/files/chrome-remote-desktop-44.0.2403.44-always-sudo.patch?rev=1.1&content-type=text/plain
Index: chrome-remote-desktop-44.0.2403.44-always-sudo.patch
===================================================================
https://bugs.gentoo.org/541708
just use `sudo` for everything
--- a/opt/google/chrome-remote-desktop/chrome-remote-desktop
+++ b/opt/google/chrome-remote-desktop/chrome-remote-desktop
@@ -1092,12 +1092,7 @@
logging.info("Group '%s' not found." % CHROME_REMOTING_GROUP_NAME)
command = [SCRIPT_PATH, '--add-user-as-root', user]
- if os.getenv("DISPLAY"):
- # TODO(rickyz): Add a Polkit policy that includes a more friendly message
- # about what this command does.
- command = ["/usr/bin/pkexec"] + command
- else:
- command = ["/usr/bin/sudo", "-k", "--"] + command
+ command = ["/usr/bin/sudo", "-k", "--"] + command
# Run with an empty environment out of paranoia, though if an attacker
# controls the environment this script is run under, we're already screwed