Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/chrome-remote-desktop/files: chrome-remote-desktop-44.0.2403.44-always-sudo.patch
Date: Fri, 24 Jul 2015 11:31:23
Message-Id: 20150724113115.71AF6C3@oystercatcher.gentoo.org
1 vapier 15/07/24 11:31:15
2
3 Added:
4 chrome-remote-desktop-44.0.2403.44-always-sudo.patch
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.1 net-misc/chrome-remote-desktop/files/chrome-remote-desktop-44.0.2403.44-always-sudo.patch
12
13 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
14 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
15
16 Index: chrome-remote-desktop-44.0.2403.44-always-sudo.patch
17 ===================================================================
18 https://bugs.gentoo.org/541708
19
20 just use `sudo` for everything
21
22 --- a/opt/google/chrome-remote-desktop/chrome-remote-desktop
23 +++ b/opt/google/chrome-remote-desktop/chrome-remote-desktop
24 @@ -1092,12 +1092,7 @@
25 logging.info("Group '%s' not found." % CHROME_REMOTING_GROUP_NAME)
26
27 command = [SCRIPT_PATH, '--add-user-as-root', user]
28 - if os.getenv("DISPLAY"):
29 - # TODO(rickyz): Add a Polkit policy that includes a more friendly message
30 - # about what this command does.
31 - command = ["/usr/bin/pkexec"] + command
32 - else:
33 - command = ["/usr/bin/sudo", "-k", "--"] + command
34 + command = ["/usr/bin/sudo", "-k", "--"] + command
35
36 # Run with an empty environment out of paranoia, though if an attacker
37 # controls the environment this script is run under, we're already screwed